All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
gazebo::physics::State Class Referenceabstract

State of an entity. More...

#include <physics/State.hh>

Inheritance diagram for gazebo::physics::State:
Inheritance graph
[legend]

Public Member Functions

 State ()
 Default constructor.
 
 State (const std::string &_name, const common::Time &_realTime, const common::Time &_simTime)
 Constructor.
 
virtual ~State ()
 Destructor.
 
std::string GetName () const
 Get the name associated with this State.
 
common::Time GetRealTime () const
 Get the real time when this state was generated.
 
common::Time GetSimTime () const
 Get the sim time when this state was generated.
 
common::Time GetWallTime () const
 Get the wall time when this state was generated.
 
virtual void Load (sdf::ElementPtr _elem)=0
 Load state from SDF element.
 

Protected Attributes

std::string name
 Name associated with this State.
 
common::Time realTime
 
common::Time simTime
 
common::Time wallTime
 Times for the state data.
 

Detailed Description

State of an entity.

This is the base class for all State information.

Constructor & Destructor Documentation

gazebo::physics::State::State ( )

Default constructor.

gazebo::physics::State::State ( const std::string &  _name,
const common::Time _realTime,
const common::Time _simTime 
)

Constructor.

Construct a State object using some basic information.

Parameters
_nameName associated with the State information. This is typically the name of an Entity. _realTime Clock time since simulation started.
_simTimeSimulation time associated with this State info.
virtual gazebo::physics::State::~State ( )
virtual

Destructor.

Member Function Documentation

std::string gazebo::physics::State::GetName ( ) const

Get the name associated with this State.

Returns
Name associated with this state information. Typically a name of an Entity.
common::Time gazebo::physics::State::GetRealTime ( ) const

Get the real time when this state was generated.

Returns
Clock time since simulation was stated.
common::Time gazebo::physics::State::GetSimTime ( ) const

Get the sim time when this state was generated.

Returns
Simulation time when the data was recorded.
common::Time gazebo::physics::State::GetWallTime ( ) const

Get the wall time when this state was generated.

Returns
The absolute clock time when the State data was recorded.
virtual void gazebo::physics::State::Load ( sdf::ElementPtr  _elem)
pure virtual

Load state from SDF element.

Populates the State information from data stored in an SDF::Element

Parameters
_elemPointer to the SDF::Element

Implemented in gazebo::physics::LinkState, gazebo::physics::ModelState, gazebo::physics::WorldState, gazebo::physics::CollisionState, and gazebo::physics::JointState.

Member Data Documentation

std::string gazebo::physics::State::name
protected

Name associated with this State.

common::Time gazebo::physics::State::realTime
protected
common::Time gazebo::physics::State::simTime
protected
common::Time gazebo::physics::State::wallTime
protected

Times for the state data.


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