#include <MarkerBasedConverter.h>
|
|
MarkerMotionPtr | getInputMarkerMotion () |
| |
|
std::map< std::string, std::string > | getMarkerMapping () const |
| |
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | MarkerBasedConverter (const std::string &name) |
| |
| void | setMarkerMapping (const std::map< std::string, std::string > &markerMap) |
| |
| virtual bool | setup (AbstractMotionPtr inputMotion, ModelPtr outputModel) |
| |
| virtual bool | setup (ModelPtr inputModel, AbstractMotionPtr inputMotion, ModelPtr outputModel) |
| |
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | Converter (const std::string &name) |
| |
| virtual AbstractMotionPtr | convertMotion ()=0 |
| |
| virtual bool | convertMotionStep (AbstractMotionPtr currentOutput, bool increment=true)=0 |
| |
| std::map< std::string, float > | getInitialJointFitting () |
| |
| Eigen::Matrix4f | getInitialModelFitting () |
| |
|
virtual std::vector< std::string > | getJointOrder () const |
| |
|
float | getSourceModelSize () |
| |
|
float | getTargetModelSize () |
| |
| virtual AbstractMotionPtr | initializeStepwiseConversion ()=0 |
| |
|
void | setSourceModelSize (float size) |
| |
|
void | setTargetModelSize (float size) |
| |
| virtual bool | setupFile (const std::string &configFilename) |
| |
|
virtual void | setupJointOrder (const std::vector< std::string > &jo) |
| | Pass the joint order to this converter.
|
| |
|
virtual bool | setupXML (const std::string &xmlString) |
| |
|
|
bool | getOptionalBoolByAttributeName (rapidxml::xml_node< char > *xmlNode, const std::string &attributeName, bool standardValue) |
| |
|
float | getOptionalFloatByAttributeName (rapidxml::xml_node< char > *xmlNode, const std::string &attributeName, float standardValue) |
| |
|
virtual bool | _setup (rapidxml::xml_node< char > *rootTag)=0 |
| | first tag in xml configuration
|
| |
|
|
MarkerMotionPtr | inputMarkerMotion |
| | A casted version of the inputMotion.
|
| |
|
std::map< std::string, std::string > | markerMapping |
| | The mapping describes which input markers belong to which output markers.
|
| |
|
std::map< std::string, float > | initialJointValues |
| |
|
Eigen::Matrix4f | initialModelPose |
| |
|
ModelPtr | inputModel |
| |
|
AbstractMotionPtr | inputMotion |
| |
|
std::vector< std::string > | jointOrder |
| |
|
float | mSourceModelSize |
| |
|
float | mTargetModelSize |
| |
|
std::string | name |
| |
|
ModelPtr | outputModel |
| |
\brief An interface for all marker based converter classes.
A marker based converter maps an input motion to an output motion while assuming that input and output models are markered. The main application of marker based converters is to realize converters from (e.g. Vicon) Motion Data to an MMM model.
- See also
- ConverterFactory
◆ setMarkerMapping()
| void MMM::MarkerBasedConverter::setMarkerMapping |
( |
const std::map< std::string, std::string > & |
markerMap | ) |
|
Setup ViconMarker<->ModelMarker mapping. No checks are performed here, the mapping is verfified later.
◆ setup() [1/2]
| bool MMM::MarkerBasedConverter::setup |
( |
AbstractMotionPtr |
inputMotion, |
|
|
ModelPtr |
outputModel |
|
) |
| |
|
virtual |
Basic setup of a marker based converter
- Parameters
-
| inputMotion | The motion to convert. |
| outputModel | Setup the target model. |
- Returns
- true on success.
◆ setup() [2/2]
| bool MMM::MarkerBasedConverter::setup |
( |
ModelPtr |
inputModel, |
|
|
AbstractMotionPtr |
inputMotion, |
|
|
ModelPtr |
outputModel |
|
) |
| |
|
virtual |
Basic setup of a converter
- Parameters
-
| inputModel | Specifies to which model the inputMotion is linked. In case MarkerMotions are used as input (e.g. Vicon->MMM) the input model can be empty. |
| inputMotion | The motion to convert. |
| outputModel | Setup the target model. |
- Returns
- true on success.
Reimplemented from MMM::Converter.
The documentation for this class was generated from the following files:
- /builds/sw/mmm/core/MMM/Motion/Legacy/Converter/MarkerBasedConverter.h
- /builds/sw/mmm/core/MMM/Motion/Legacy/Converter/MarkerBasedConverter.cpp