Go to the documentation of this file.
62 public:
State(
const std::string &_name,
65 const uint64_t _iterations);
68 public:
virtual ~
State();
74 public:
virtual void Load(
const sdf::ElementPtr _elem);
84 public:
State operator-(
const State &_state)
const;
89 public: std::string GetName()
const;
94 public:
void SetName(
const std::string &_name);
110 public: uint64_t GetIterations()
const;
115 public:
virtual void SetWallTime(
const common::Time &_time);
119 public:
virtual void SetRealTime(
const common::Time &_time);
123 public:
virtual void SetSimTime(
const common::Time &_time);
127 public:
virtual void SetIterations(
const uint64_t _iterations);
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:26
A Time class, can be used to hold wall- or sim-time. stored as sec and nano-sec.
Definition: Time.hh:44
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.
virtual ~State()
Destructor.
common::Time simTime
Definition: State.hh:133
State of an entity.
Definition: State.hh:49
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.