Go to the documentation of this file.
62 public:
State(
const std::string &_name,
65 const uint64_t _iterations);
74 public:
virtual void Load(
const sdf::ElementPtr _elem);
94 public:
void SetName(
const std::string &_name);
137 protected: uint64_t iterations = 0;
uint64_t GetIterations() const
Get the iterations when this state was generated.
common::Time wallTime
Times for the state data.
Definition: State.hh:133
uint64_t iterations
The number of simulation iterations when this state was generated.
Definition: State.hh:137
Forward declarations for the common classes.
Definition: Animation.hh:27
A Time class, can be used to hold wall- or sim-time. stored as sec and nano-sec.
Definition: Time.hh:48
common::Time GetSimTime() const
Get the sim time when this state was generated.
default namespace for gazebo
common::Time realTime
Definition: State.hh:133
virtual void SetWallTime(const common::Time &_time)
Set the wall time when this state was generated.
virtual void SetRealTime(const common::Time &_time)
Set the real time when this state was generated.
std::string GetName() const
Get the name associated with this State.
virtual void SetIterations(const uint64_t _iterations)
Set the iterations when this state was generated.
State & operator=(const State &_state)
Assignment operator.
void SetName(const std::string &_name)
Set the name associated with this State.
State(const std::string &_name, const common::Time &_realTime, const common::Time &_simTime, const uint64_t _iterations)
Constructor.
virtual ~State()
Destructor.
common::Time simTime
Definition: State.hh:133
State of an entity.
Definition: State.hh:50
virtual void SetSimTime(const common::Time &_time)
Set the sim time when this state was generated.
State operator-(const State &_state) const
Subtraction operator.
common::Time GetWallTime() const
Get the wall time when this state was generated.
std::string name
Name associated with this State.
Definition: State.hh:130
State()
Default constructor.
common::Time GetRealTime() const
Get the real time when this state was generated.
virtual void Load(const sdf::ElementPtr _elem)
Load state from SDF element.