Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
parameter_transform_io.cpp File Reference

Go to the source code of this file.

Classes

class  momentum::SectionContent
 Holds all segments of a section and provides line-aware iteration This is used internally to track line numbers across potentially duplicate sections. More...

Namespaces

namespace  momentum

Functions

std::unordered_map< std::string, std::string > momentum::loadMomentumModel (const filesystem::path &filename)
std::unordered_map< std::string, std::string > momentum::loadMomentumModelFromBuffer (std::span< const std::byte > buffer)
ParameterTransform momentum::parseParameterTransform (const SectionContent &content, const Skeleton &skeleton)
ParameterTransform momentum::parseParameterTransform (const std::string &data, const Skeleton &skeleton, size_t lineOffset)
ParameterSets momentum::parseParameterSets (const SectionContent &content, const ParameterTransform &pt)
ParameterSets momentum::parseParameterSets (const std::string &data, const ParameterTransform &pt, size_t lineOffset)
PoseConstraints momentum::parsePoseConstraints (const SectionContent &content, const ParameterTransform &pt)
PoseConstraints momentum::parsePoseConstraints (const std::string &data, const ParameterTransform &pt, size_t lineOffset)
std::tuple< ParameterTransform, ParameterLimits > momentum::loadModelDefinition (const filesystem::path &filename, const Skeleton &skeleton)
std::tuple< ParameterTransform, ParameterLimits > momentum::loadModelDefinition (std::span< const std::byte > rawData, const Skeleton &skeleton)
std::string momentum::writeParameterTransform (const ParameterTransform &parameterTransform, const Skeleton &skeleton)
std::string momentum::writeParameterSets (const ParameterSets &parameterSets)
std::string momentum::writePoseConstraints (const PoseConstraints &poseConstraints)
std::string momentum::writeModelDefinition (const Skeleton &skeleton, const ParameterTransform &parameterTransform, const ParameterLimits &parameterLimits)
 Write complete model definition file.