Class CAction

Inheritance Relationships

Base Type

  • public mrpt::serialization::CSerializable

Derived Types

Class Documentation

class CAction : public mrpt::serialization::CSerializable

Declares a class for storing a robot action. It is used in mrpt::obs::CRawlog, for logs storage and particle filter based simulations. See derived classes for implementations.

Subclassed by mrpt::obs::CActionRobotMovement2D, mrpt::obs::CActionRobotMovement3D

Public Functions

CAction() = default

Default ctor

~CAction() override = default
virtual void getDescriptionAsText(std::ostream &o) const

Build a detailed, multi-line textual description of the action contents and dump it to the output stream.

Note

If overried by derived classes, call base CAction::getDescriptionAsText() first to show common information.

std::string getDescriptionAsTextValue() const

Return by value version of getDescriptionAsText(std::ostream&)

Public Members

mrpt::system::TTimeStamp timestamp = {INVALID_TIMESTAMP}

The associated time-stamp.