Go to the documentation of this file.
56 public:
State(
const std::string &_name,
59 const uint64_t _iterations);
62 public:
virtual ~
State();
68 public:
virtual void Load(
const sdf::ElementPtr _elem);
78 public:
State operator-(
const State &_state)
const;
83 public: std::string GetName()
const;
88 public:
void SetName(
const std::string &_name);
104 public: uint64_t GetIterations()
const;
109 public:
virtual void SetWallTime(
const common::Time &_time);
113 public:
virtual void SetRealTime(
const common::Time &_time);
117 public:
virtual void SetSimTime(
const common::Time &_time);
121 public:
virtual void SetIterations(
const uint64_t _iterations);
131 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:127
uint64_t iterations
The number of simulation iterations when this state was generated.
Definition: State.hh:131
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:47
common::Time GetSimTime() const
Get the sim time when this state was generated.
default namespace for gazebo
common::Time realTime
Definition: State.hh:127
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:127
State of an entity.
Definition: State.hh:43
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:124
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.