Choreonoid  1.8
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::BodyMotion Class Reference

#include <BodyMotion.h>

Inheritance diagram for cnoid::BodyMotion:
cnoid::AbstractSeq

Classes

class  ConstFrame
 
class  Frame
 

Public Types

typedef std::map< std::string, std::shared_ptr< AbstractSeq > > ExtraSeqMap
 
typedef ExtraSeqMap::const_iterator ConstSeqIterator
 

Public Member Functions

 BodyMotion ()
 
 BodyMotion (const BodyMotion &org)
 
BodyMotionoperator= (const BodyMotion &rhs)
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const override
 
void setDimension (int numFrames, int numJoints, int numLinks, bool clearNewArea=false)
 
void setNumJoints (int numJoints, bool clearNewElements=false)
 
int numLinks () const
 
int numJoints () const
 
double frameRate () const
 
virtual double getFrameRate () const override
 
virtual void setFrameRate (double frameRate) override
 
double timeStep () const
 
virtual double getOffsetTime () const override
 
virtual void setOffsetTime (double time) override
 
int numFrames () const
 
virtual int getNumFrames () const override
 
virtual void setNumFrames (int n, bool clearNewArea=false) override
 
std::shared_ptr< MultiSE3SeqlinkPosSeq ()
 
std::shared_ptr< const MultiSE3SeqlinkPosSeq () const
 
std::shared_ptr< MultiValueSeqjointPosSeq ()
 
std::shared_ptr< const MultiValueSeqjointPosSeq () const
 
Frame frame (int frame)
 
ConstFrame frame (int frame) const
 
bool load (const std::string &filename, std::ostream &os=nullout())
 
bool save (const std::string &filename, std::ostream &os=nullout())
 
bool save (const std::string &filename, double version, std::ostream &os=nullout())
 
ConstSeqIterator extraSeqBegin () const
 
ConstSeqIterator extraSeqEnd () const
 
template<class SeqType >
std::shared_ptr< SeqType > extraSeq (const std::string &name) const
 
void setExtraSeq (const std::string &name, std::shared_ptr< AbstractSeq > seq)
 
template<class SeqType >
std::shared_ptr< SeqType > getOrCreateExtraSeq (const std::string &name)
 
void clearExtraSeq (const std::string &name)
 
SignalProxy< void()> sigExtraSeqsChanged ()
 
void setNumParts (int numJoints, bool clearNewElements=false)
 
int getNumParts () const
 
bool loadStandardYAMLformat (const std::string &filename, std::ostream &os=nullout())
 
bool saveAsStandardYAMLformat (const std::string &filename, std::ostream &os=nullout())
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs)
 
- Public Member Functions inherited from cnoid::AbstractSeq
virtual ~AbstractSeq ()
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs)
 
void copySeqProperties (const AbstractSeq &source)
 
const std::string & seqType () const
 
double getTimeStep () const
 
void setTimeStep (double timeStep)
 
double getTimeOfFrame (int frame) const
 
int getFrameOfTime (double time) const
 
int getOffsetTimeFrame () const
 
void setTimeLength (double length, bool clearNewElements=false)
 
double getTimeLength () const
 
const std::string & seqContentName ()
 
virtual void setSeqContentName (const std::string &name)
 
bool readSeq (const Mapping *archive, std::ostream &os=nullout())
 
bool writeSeq (YAMLWriter &writer)
 
const std::string & seqMessage () const
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 

Protected Member Functions

virtual bool doReadSeq (const Mapping *archive, std::ostream &os) override
 
virtual bool doWriteSeq (YAMLWriter &writer, std::function< void()> additionalPartCallback) override
 
- Protected Member Functions inherited from cnoid::AbstractSeq
 AbstractSeq (const char *seqType)
 
 AbstractSeq (const AbstractSeq &org)
 
void setSeqType (const std::string &type)
 
void clearSeqMessage ()
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 
void addSeqMessage (const std::string &message)
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cnoid::AbstractSeq
static double defaultFrameRate ()
 

Member Typedef Documentation

◆ ConstSeqIterator

typedef ExtraSeqMap::const_iterator cnoid::BodyMotion::ConstSeqIterator

◆ ExtraSeqMap

typedef std::map<std::string, std::shared_ptr<AbstractSeq> > cnoid::BodyMotion::ExtraSeqMap

Constructor & Destructor Documentation

◆ BodyMotion() [1/2]

BodyMotion::BodyMotion ( )

◆ BodyMotion() [2/2]

BodyMotion::BodyMotion ( const BodyMotion org)

Member Function Documentation

◆ clearExtraSeq()

void BodyMotion::clearExtraSeq ( const std::string &  name)

◆ cloneSeq()

std::shared_ptr< AbstractSeq > BodyMotion::cloneSeq ( ) const
overridevirtual

Implements cnoid::AbstractSeq.

◆ doReadSeq()

bool BodyMotion::doReadSeq ( const Mapping archive,
std::ostream &  os 
)
overrideprotectedvirtual

Reimplemented from cnoid::AbstractSeq.

◆ doWriteSeq()

bool BodyMotion::doWriteSeq ( YAMLWriter writer,
std::function< void()>  additionalPartCallback 
)
overrideprotectedvirtual

Reimplemented from cnoid::AbstractSeq.

◆ extraSeq()

template<class SeqType >
std::shared_ptr<SeqType> cnoid::BodyMotion::extraSeq ( const std::string &  name) const
inline

◆ extraSeqBegin()

ConstSeqIterator cnoid::BodyMotion::extraSeqBegin ( ) const
inline

◆ extraSeqEnd()

ConstSeqIterator cnoid::BodyMotion::extraSeqEnd ( ) const
inline

◆ frame() [1/2]

Frame cnoid::BodyMotion::frame ( int  frame)
inline

◆ frame() [2/2]

ConstFrame cnoid::BodyMotion::frame ( int  frame) const
inline

◆ frameRate()

double BodyMotion::frameRate ( ) const

◆ getFrameRate()

double BodyMotion::getFrameRate ( ) const
overridevirtual

Implements cnoid::AbstractSeq.

◆ getNumFrames()

int BodyMotion::getNumFrames ( ) const
overridevirtual

Implements cnoid::AbstractSeq.

◆ getNumParts()

int cnoid::BodyMotion::getNumParts ( ) const
inline

◆ getOffsetTime()

double BodyMotion::getOffsetTime ( ) const
overridevirtual

Implements cnoid::AbstractSeq.

◆ getOrCreateExtraSeq()

template<class SeqType >
std::shared_ptr<SeqType> cnoid::BodyMotion::getOrCreateExtraSeq ( const std::string &  name)
inline

◆ jointPosSeq() [1/2]

std::shared_ptr<MultiValueSeq> cnoid::BodyMotion::jointPosSeq ( )
inline

◆ jointPosSeq() [2/2]

std::shared_ptr<const MultiValueSeq> cnoid::BodyMotion::jointPosSeq ( ) const
inline

◆ linkPosSeq() [1/2]

std::shared_ptr<MultiSE3Seq> cnoid::BodyMotion::linkPosSeq ( )
inline

◆ linkPosSeq() [2/2]

std::shared_ptr<const MultiSE3Seq> cnoid::BodyMotion::linkPosSeq ( ) const
inline

◆ load()

bool BodyMotion::load ( const std::string &  filename,
std::ostream &  os = nullout() 
)

◆ loadStandardYAMLformat()

bool cnoid::BodyMotion::loadStandardYAMLformat ( const std::string &  filename,
std::ostream &  os = nullout() 
)
inline

◆ numFrames()

int BodyMotion::numFrames ( ) const

◆ numJoints()

int cnoid::BodyMotion::numJoints ( ) const
inline

◆ numLinks()

int cnoid::BodyMotion::numLinks ( ) const
inline

◆ operator=() [1/2]

AbstractSeq & AbstractSeq::operator=

◆ operator=() [2/2]

BodyMotion & BodyMotion::operator= ( const BodyMotion rhs)

◆ save() [1/2]

bool BodyMotion::save ( const std::string &  filename,
double  version,
std::ostream &  os = nullout() 
)

◆ save() [2/2]

bool BodyMotion::save ( const std::string &  filename,
std::ostream &  os = nullout() 
)

◆ saveAsStandardYAMLformat()

bool cnoid::BodyMotion::saveAsStandardYAMLformat ( const std::string &  filename,
std::ostream &  os = nullout() 
)
inline

◆ setDimension()

void BodyMotion::setDimension ( int  numFrames,
int  numJoints,
int  numLinks,
bool  clearNewArea = false 
)

◆ setExtraSeq()

void BodyMotion::setExtraSeq ( const std::string &  name,
std::shared_ptr< AbstractSeq seq 
)

◆ setFrameRate()

void BodyMotion::setFrameRate ( double  frameRate)
overridevirtual

Implements cnoid::AbstractSeq.

◆ setNumFrames()

void BodyMotion::setNumFrames ( int  n,
bool  clearNewArea = false 
)
overridevirtual

Implements cnoid::AbstractSeq.

◆ setNumJoints()

void BodyMotion::setNumJoints ( int  numJoints,
bool  clearNewElements = false 
)

◆ setNumParts()

void cnoid::BodyMotion::setNumParts ( int  numJoints,
bool  clearNewElements = false 
)
inline

◆ setOffsetTime()

void BodyMotion::setOffsetTime ( double  time)
overridevirtual

Implements cnoid::AbstractSeq.

◆ sigExtraSeqsChanged()

SignalProxy<void()> cnoid::BodyMotion::sigExtraSeqsChanged ( )
inline

◆ timeStep()

double BodyMotion::timeStep ( ) const

The documentation for this class was generated from the following files: