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 | Protected Attributes
MMM::MarkerMotion Class Reference

This calls defines a Cartesian motion of a set of markers. More...

#include <MarkerMotion.h>

Inheritance diagram for MMM::MarkerMotion:
[legend]

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)
 

Detailed Description

This calls defines a Cartesian motion of a set of markers.

Member Function Documentation

◆ getMarkerLabel()

std::string MMM::MarkerMotion::getMarkerLabel ( size_t  i)

Returns the name of label i.

◆ toXML()

std::string MMM::MarkerMotion::toXML ( )
virtual

Creates an XML string for this object.

Implements MMM::AbstractMotion.


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