Karlsruhe Institute of Technology (KIT) Logo

Master Motor Map

Whole-body human reference model and tools for unifying representations of whole-body human motion

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
MMM::LegacyMotionConverter Class Reference

Converter for create a motion from the model pose and kinematics of a legacy motion. More...

#include <LegacyMotionConverter.h>

Public Member Functions

MotionPtr convert (const rapidxml::xml_node< char > *motionNode, const std::string &motionName, const std::filesystem::path &motionFilePath, const std::function< void(std::filesystem::path &)> &handleMissingModelFile=NULL)
 
MotionRecordingPtr convert (const std::string &xml, bool xmlIsPath=true, const std::function< void(std::filesystem::path &)> &handleMissingModelFile=NULL)
 
MotionRecordingPtr convert (const std::vector< LegacyMotionPtr > &legacyMotions, const std::filesystem::path &motionFilePath=std::filesystem::path(), bool checkModel=true)
 
MotionPtr convert (simox::xml::RapidXMLWrapperNodePtr motionNode, const std::string &motionName, const std::filesystem::path &motionFilePath, const std::function< void(std::filesystem::path &)> &handleMissingModelFile=NULL)
 
MotionPtr convertMotion (LegacyMotionPtr legacyMotion, const std::filesystem::path &motionFilePath, bool checkModel=true)
 
std::vector< SensorPtr > createSensors (LegacyMotionPtr legacyMotion)
 
 LegacyMotionConverter (bool mmmOnly=false, const std::vector< std::filesystem::path > &additionalLibPaths=std::vector< std::filesystem::path >(), bool ignoreStandardLibPaths=false)
 
 LegacyMotionConverter (const std::map< std::string, std::shared_ptr< SensorFactory > > &sensorFactories, bool mmmOnly=false)
 

Static Public Member Functions

static std::filesystem::path getStandardLibPath ()
 

Static Public Attributes

static const std::string VERSION = "1.0"
 Denotes the version of the legacy motion.
 

Protected Member Functions

LegacyMotionList loadMotions (const std::string &xml, bool xmlIsPath=true, const std::function< void(std::filesystem::path &)> &handleMissingModelFile=NULL)
 

Protected Attributes

bool mmmOnly
 
std::map< std::string, std::shared_ptr< SensorFactory > > sensorFactories
 

Detailed Description

Converter for create a motion from the model pose and kinematics of a legacy motion.

Constructor & Destructor Documentation

◆ LegacyMotionConverter() [1/2]

MMM::LegacyMotionConverter::LegacyMotionConverter ( bool  mmmOnly = false,
const std::vector< std::filesystem::path > &  additionalLibPaths = std::vector<std::filesystem::path>(),
bool  ignoreStandardLibPaths = false 
)
Parameters
additionalLibPathsPaths to sensor plug-in folders. No need to include the standard folder.
ignoreStandardLibPathsJust use the given additional library Paths.
mmmOnlyOnly load motions with mmm reference model (mmm.xml)

◆ LegacyMotionConverter() [2/2]

MMM::LegacyMotionConverter::LegacyMotionConverter ( const std::map< std::string, std::shared_ptr< SensorFactory > > &  sensorFactories,
bool  mmmOnly = false 
)
Parameters
sensorFactoriesThe sensor factory plug-ins.
mmmOnlyOnly load motions with mmm reference model (mmm.xml)

The documentation for this class was generated from the following files:
KoroiBot Logo WALK-MAN Logo Xperience Logo SecondHands Logo TimeStorm Logo I-SUPPORT Logo
PACO-PLUS Logo SFB-588 Logo SPP1527 Logo