State of an entity.
More...
#include <physics/physics.hh>
State of an entity.
This is the base class for all State information.
gazebo::physics::State::State |
( |
| ) |
|
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
-
_name | Name associated with the State information. This is typically the name of an Entity. _realTime Clock time since simulation started. |
_simTime | Simulation time associated with this State info. |
virtual gazebo::physics::State::~State |
( |
| ) |
|
|
virtual |
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.
Get the real time when this state was generated.
- Returns
- Clock time since simulation was stated.
Get the sim time when this state was generated.
- Returns
- Simulation time when the data was recorded.
Get the wall time when this state was generated.
- Returns
- The absolute clock time when the State data was recorded.
State gazebo::physics::State::operator- |
( |
const State & |
_state | ) |
const |
Subtraction operator.
- Parameters
-
[in] | _pt | A state to substract. |
- Returns
- The resulting state.
State& gazebo::physics::State::operator= |
( |
const State & |
_state | ) |
|
Assignment operator.
- Parameters
-
- Returns
- this
void gazebo::physics::State::SetName |
( |
const std::string & |
_name | ) |
|
Set the name associated with this State.
- Parameters
-
[in] | _name | Name associated with this state information. Typically the name of an Entity. |
std::string gazebo::physics::State::name |
|
protected |
Name associated with this State.
Times for the state data.
The documentation for this class was generated from the following file: