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 Protected Member Functions | Protected Attributes
MMM::AbstractMotion Class Referenceabstract

An interface for all motion classes. More...

#include <AbstractMotion.h>

Inheritance diagram for MMM::AbstractMotion:
[legend]

Public Member Functions

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 unsigned int getNumFrames ()=0
 
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.
 
virtual std::string toXML ()=0
 

Static Public Member Functions

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

static bool saveXML (const std::string &filename, const std::string &content)
 

Protected Attributes

std::map< std::string, MotionEntryPtr > motionEntries
 Custom Entries are stored in this map.
 

Detailed Description

An interface for all motion classes.

Member Function Documentation

◆ addEntry()

bool MMM::AbstractMotion::addEntry ( const std::string &  name,
MotionEntryPtr  entry 
)
virtual

Adds a custom motion entry.
Silently overwrites existing entries with same name (lowercase).

Parameters
nameThe name is used to identify the custom data. Internally it is converted to lowercase.
entryThe data to store.
Returns
True on success.
Here is the caller graph for this function:

◆ getNumFrames()

virtual unsigned int MMM::AbstractMotion::getNumFrames ( )
pure virtual

Returns the number of entries.

Implemented in MMM::LegacyMotion, MMM::MarkerMotion, and MMM::UnlabeledMarkerMotion.

◆ toXML()

virtual std::string MMM::AbstractMotion::toXML ( )
pure virtual

Creates an XML string for this object.

Implemented in MMM::LegacyMotion, MMM::MarkerMotion, and MMM::UnlabeledMarkerMotion.

Here is the caller graph for this function:

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