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 | Data Fields | Protected Attributes
MMM::MotionFrame Class Reference

Public Member Functions

bool addEntry (const std::string &name, MotionFrameEntryPtr entry)
 
MotionFramePtr copy ()
 
MotionFrameEntryPtr getEntry (const std::string &name)
 Retrieve custom motion data entries. Name is internally converted to lowercase.
 
unsigned int getndof ()
 
Eigen::Vector3f getRootPos ()
 
Eigen::Vector3f getRootPosAcc ()
 
Eigen::Matrix4f getRootPose ()
 
Eigen::Vector3f getRootPosVel ()
 
Eigen::Vector3f getRootRot ()
 
Eigen::Vector3f getRootRotAcc ()
 
Eigen::Vector3f getRootRotVel ()
 
bool hasEntry (const std::string &name) const
 Check if entry with name (lowercase) is present.
 
 MotionFrame (const MotionFrame &inpSrc)
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW MotionFrame (unsigned int ndof)
 
bool removeEntry (const std::string &name)
 Remove custom entry.
 
bool setRootPos (const Eigen::Vector3f &pos)
 
bool setRootPosAcc (const Eigen::Vector3f &posAcc)
 
bool setRootPose (const Eigen::Matrix4f &pose)
 
bool setRootPosVel (const Eigen::Vector3f &posVel)
 
bool setRootRot (const Eigen::Vector3f &rot)
 
bool setRootRotAcc (const Eigen::Vector3f &rotAcc)
 
bool setRootRotVel (const Eigen::Vector3f &rotVel)
 
std::string toXML ()
 Returns an XML string that describes this object.
 

Data Fields

Eigen::MatrixXf _customMatrix
 Custom Matrix for debugging purposes only DO NOT USE! Will be removed in future versions! More...
 
Eigen::VectorXf joint
 The joint values.
 
Eigen::VectorXf joint_acc
 The joint accelerations (optional)
 
Eigen::VectorXf joint_vel
 The joint velocities (optional)
 
float timestep
 The timestep (s)
 

Protected Attributes

std::map< std::string, MotionFrameEntryPtr > motionFrameEntries
 Here, custom motion data fields can be stored.
 
unsigned int ndof
 The number of Degrees of Freedom.
 

Constructor & Destructor Documentation

◆ MotionFrame()

MMM::MotionFrame::MotionFrame ( const MotionFrame inpSrc)

Copy Constructor

Member Function Documentation

◆ addEntry()

bool MMM::MotionFrame::addEntry ( const std::string &  name,
MotionFrameEntryPtr  entry 
)
    Adds a custom motion data 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:

◆ getRootPos()

Eigen::Vector3f MMM::MotionFrame::getRootPos ( )

Returns standard entry "RootPosition". This is the 3D position of the model's root coordinate system in millimeters.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRootPosAcc()

Eigen::Vector3f MMM::MotionFrame::getRootPosAcc ( )

Returns standard entry "RootPositionAcceleration" This is the acceleration of the model's root coordinate system.

Here is the call graph for this function:

◆ getRootPose()

Eigen::Matrix4f MMM::MotionFrame::getRootPose ( )

Returns the root pose as homogeneous 4x4 matrix. Position is given in millimeters.

Here is the call graph for this function:

◆ getRootPosVel()

Eigen::Vector3f MMM::MotionFrame::getRootPosVel ( )

Returns standard entry "RootPositionVelocity". This is the velocity of the model's root coordinate system.

Here is the call graph for this function:

◆ getRootRot()

Eigen::Vector3f MMM::MotionFrame::getRootRot ( )

Returns standard entry "RootRotation". This is the orientation of the model's root coordinate system. Specified in Roll Pitch Yaw angles.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRootRotAcc()

Eigen::Vector3f MMM::MotionFrame::getRootRotAcc ( )

Returns standard entry "RootRotationAcceleration" This is the rotation acceleration of the model's root coordinate system.

Here is the call graph for this function:

◆ getRootRotVel()

Eigen::Vector3f MMM::MotionFrame::getRootRotVel ( )

Returns standard entry "RootRotationVelocity". This is the rotation velocity of the model's root coordinate system.

Here is the call graph for this function:

◆ setRootPos()

bool MMM::MotionFrame::setRootPos ( const Eigen::Vector3f &  pos)

Sets the standard entry "RootPosition". This is the 3D position of the model's root coordinate system in millimeters.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRootPosAcc()

bool MMM::MotionFrame::setRootPosAcc ( const Eigen::Vector3f &  posAcc)

Sets the standard entry "RootPositionAcceleration" This is the acceleration of the model's root coordinate system.

Here is the call graph for this function:

◆ setRootPose()

bool MMM::MotionFrame::setRootPose ( const Eigen::Matrix4f &  pose)

Sets the root pose as homogeneous 4x4 matrix. Position is given in millimeters.

Here is the call graph for this function:

◆ setRootPosVel()

bool MMM::MotionFrame::setRootPosVel ( const Eigen::Vector3f &  posVel)

Sets the standard entry "RootPositionVelocity". This is the velocity of the model's root coordinate system.

Here is the call graph for this function:

◆ setRootRot()

bool MMM::MotionFrame::setRootRot ( const Eigen::Vector3f &  rot)

Sets the standard entry "RootRotation". This is the orientation of the model's root coordinate system. Specified in Roll Pitch Yaw angles.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRootRotAcc()

bool MMM::MotionFrame::setRootRotAcc ( const Eigen::Vector3f &  rotAcc)

Sets the standard entry "RootRotationAcceleration" This is the rotation acceleration of the model's root coordinate system.

Here is the call graph for this function:

◆ setRootRotVel()

bool MMM::MotionFrame::setRootRotVel ( const Eigen::Vector3f &  rotVel)

Sets the standard entry "RootRotationVelocity". This is the rotation velocity of the model's root coordinate system.

Here is the call graph for this function:

Field Documentation

◆ _customMatrix

Eigen::MatrixXf MMM::MotionFrame::_customMatrix

Custom Matrix for debugging purposes only DO NOT USE! Will be removed in future versions!


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