Whole-body human reference model and tools for unifying representations of whole-body human motion
This calls defines a Cartesian motion of a set of markers. More...
#include <MarkerMotion.h>
Public Member Functions | |
| void | appendFrame (LegacyMarkerDataPtr data) |
| Append marker data to end of data vector. | |
| LegacyMarkerDataPtr | getFrame (size_t frame) |
| Get entry at a specific frame. | |
| std::string | getMarkerLabel (size_t i) |
| std::vector< std::string > | getMarkerLabels () |
| Returns the names of all markers. | |
| virtual unsigned int | getNumFrames () |
| Number of entries. | |
| size_t | getNumMarkers () |
| Number of markers. | |
| bool | hasMarkerLabel (const std::string &labelName) const |
| Checks if given label is present. | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | MarkerMotion (unsigned int frames=0) |
| void | print () |
| Print data. | |
| void | segment (size_t frame1, size_t frame2) |
| get a segment motion from the original motion | |
| void | setFrame (size_t frame, LegacyMarkerDataPtr data) |
| Fill data. | |
| void | setMarkerLabels (std::vector< std::string > &labels) |
| Set the label name data. | |
| void | setNumFrames (size_t frames) |
| virtual std::string | toXML () |
Public Member Functions inherited from MMM::AbstractMotion | |
| virtual bool | addEntry (const std::string &name, MotionEntryPtr entry) |
| virtual MotionEntryPtr | getEntry (const std::string &name) |
| Retrieve custom motion data entries. Name is internally converted to lowercase. | |
| virtual bool | hasEntry (const std::string &name) const |
| Check if entry with name (lowercase) is present. | |
| virtual bool | removeEntry (const std::string &name) |
| Remove custom entry. | |
| bool | saveXML (const std::string &filename) |
| Stores MMM content to file. | |
Protected Attributes | |
| std::vector< std::string > | markerLabels |
| std::vector< LegacyMarkerDataPtr > | markerTrajectory |
Protected Attributes inherited from MMM::AbstractMotion | |
| std::map< std::string, MotionEntryPtr > | motionEntries |
| Custom Entries are stored in this map. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MMM::AbstractMotion | |
| template<typename M , typename std::enable_if< std::is_base_of< AbstractMotion, M >::value >::type * = nullptr> | |
| static bool | saveXML (const std::vector< std::shared_ptr< M >> &motions, const std::string &filename) |
| Stores MMM content to file. | |
Static Protected Member Functions inherited from MMM::AbstractMotion | |
| static bool | saveXML (const std::string &filename, const std::string &content) |
This calls defines a Cartesian motion of a set of markers.
| std::string MMM::MarkerMotion::getMarkerLabel | ( | size_t | i | ) |
Returns the name of label i.
|
virtual |
Creates an XML string for this object.
Implements MMM::AbstractMotion.