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 Public Attributes | Protected Member Functions | Protected Attributes | Friends
MMM::MotionSegmentation Class Reference
Inheritance diagram for MMM::MotionSegmentation:
[legend]

Public Member Functions

MotionSegmentPtr addSegment (float minTimestep, float maxTimestep, const std::string &name=std::string())
 
void addSegments (simox::xml::RapidXMLWrapperNodePtr segmentationNode, MotionRecordingPtr motions)
 
void appendSegmentationXML (simox::xml::RapidXMLWrapperNodePtr node)
 
virtual MotionSegmentationPtr clone (AbstractMotionSegmentPtr parent, float startTimestep, float endTimestep, bool deepCopy=true, bool copyAnnotations=true)
 
bool contains (float timestep) const
 
std::vector< MotionSegmentationPtr > createChildSegmentations ()
 
bool equals (MotionSegmentationPtr other)
 
virtual bool equalsConfiguration (MotionSegmentationPtr other)
 
std::time_t getCreationTime () const
 
std::string getCreatorID () const
 
std::string getDescription () const
 
const std::vector< std::string > & getEditors () const
 
MotionSegmentPtr getFirstSegment ()
 
int getHierarchyLevel () const
 
std::time_t getLastEditedTime () const
 
std::string getLastEditorID () const
 
MotionSegmentPtr getLastSegment ()
 
float getMaximumTimestep () const
 
float getMinimumTimestep () const
 
MotionLevel getMotionLevel () const
 
std::string getMotionSubTarget () const
 
std::string getMotionTarget () const
 
MotionSegmentPtr getNextSegment (float timestep, bool allowChildElements=true)
 
MotionSegmentPtr getNextSegment (MotionSegmentPtr segment)
 
AbstractMotionSegmentPtr getParent () const
 
MotionSegmentPtr getPrevSegment (float timestep, bool allowChildElements=true)
 
MotionSegmentPtr getPrevSegment (MotionSegmentPtr segment)
 
MotionSegmentPtr getSegment (float timestep)
 
std::map< float, MotionSegmentPtr > getSegments () const
 
std::string getType () const
 
bool hasEdited (const std::string &editorID)
 
bool isTarget (MotionPtr motion) const
 
 MotionSegmentation (AbstractMotionSegmentPtr parent, const std::string &type=MANUAL_SEGMENTATION_TYPE, MotionLevel level=DEFAULT_LEVEL, const std::string &description=std::string(), const std::string &target=std::string(), const std::string &subtarget=std::string())
 
 MotionSegmentation (AbstractMotionSegmentPtr parent, MotionPtr target, const std::string &type=MANUAL_SEGMENTATION_TYPE, MotionLevel level=DEFAULT_LEVEL, const std::string &description=std::string(), const std::string &subtarget=std::string())
 
 MotionSegmentation (simox::xml::RapidXMLWrapperNodePtr node, bool unknownConfiguration=false)
 
bool overlaps (MotionSegmentationPtr other)
 
bool remove ()
 
bool remove (float timestep, bool appendChildSegmentations=true, bool removeSegmentationIfLast=true)
 
void setEdited (const std::string &editorID=AUTHOR_ID)
 
void setMotionLevel (MotionLevel level)
 
void shiftTimesteps (float timestepDelta)
 
bool split (float timestep, bool copyAnnotations=true, const std::optional< std::string > &leftSegmentName=std::nullopt, const std::optional< std::string > &rightSegmentName=std::nullopt)
 

Static Public Member Functions

static MotionLevel motionLevelfromString (const std::string &motionLevel)
 

Static Public Attributes

static std::string AUTHOR_ID = MotionSegmentation::UNKNOWN_AUTHOR_ID
 
static MotionLevel DEFAULT_LEVEL = MotionLevel::Unset
 
static constexpr const char * MANUAL_SEGMENTATION_TYPE = "Manual"
 
static constexpr const char * TIME_FORMAT = "%Y-%m-%d"
 
static constexpr const char * UNKNOWN_AUTHOR_ID = "unknown"
 

Protected Member Functions

void addSegment (MotionSegmentPtr segment, bool check=true)
 
virtual void appendConfigurationXML (simox::xml::RapidXMLWrapperNodePtr configurationNode)
 
void appendTo (MotionSegmentationPtr motionSegmentation, AbstractMotionSegmentPtr parent, float startTimestep, float endTimestep, bool deepCopy=true, bool copyAnnotations=true)
 
std::map< float, MotionSegmentPtr >::const_iterator getSegmentIterator (float timestep)
 
void notifyNameChange (MotionPtr motion, const std::string &oldMotionName)
 
void setMotionRecording (MotionRecordingPtr motions)
 
void updateInterval (float minTimestep, float maxTimestep)
 

Protected Attributes

std::string description
 
MotionLevel level
 
AbstractMotionSegmentWeakPtr parent
 
std::map< float, MotionSegmentPtr > segments
 
std::string subtarget
 
std::string target
 
std::string type
 
simox::xml::RapidXMLWrapperNodePtr unknownConfigurationNode
 

Friends

class AbstractMotionSegment
 
class MotionRecordingSegment
 
class MotionSegment
 

Member Function Documentation

◆ getDescription()

std::string MMM::MotionSegmentation::getDescription ( ) const

Returns optional description of the segmentation.

◆ getMotionTarget()

std::string MMM::MotionSegmentation::getMotionTarget ( ) const

Returns optional target motion names of the segmentation. E.g. when multiple subjects are available.

◆ getType()

std::string MMM::MotionSegmentation::getType ( ) const

Returns the type of the segmentation.

◆ remove()

bool MMM::MotionSegmentation::remove ( )

Removes segmentation from parent


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