Store state information of a physics::Collision object. More...
#include <physics/phyiscs.hh>

Public Member Functions | |
| CollisionState () | |
| Default constructor. More... | |
| CollisionState (const CollisionPtr _collision) | |
| Constructor. More... | |
| CollisionState (const sdf::ElementPtr _sdf) | |
| Constructor. More... | |
| virtual | ~CollisionState () |
| Destructor. More... | |
| void | FillSDF (sdf::ElementPtr _sdf) |
| Populate a state SDF element with data from the object. More... | |
| const math::Pose & | GetPose () const |
| Get the Collision pose. More... | |
| bool | IsZero () const |
| Return true if the values in the state are zero. More... | |
| virtual void | Load (const sdf::ElementPtr _elem) |
| Load state from SDF element. More... | |
| CollisionState | operator+ (const CollisionState &_state) const |
| Addition operator. More... | |
| CollisionState | operator- (const CollisionState &_state) const |
| Subtraction operator. More... | |
| CollisionState & | operator= (const CollisionState &_state) |
| Assignment operator. More... | |
Public Member Functions inherited from gazebo::physics::State | |
| State () | |
| Default constructor. More... | |
| State (const std::string &_name, const common::Time &_realTime, const common::Time &_simTime) | |
| Constructor. More... | |
| virtual | ~State () |
| Destructor. More... | |
| std::string | GetName () const |
| Get the name associated with this State. More... | |
| common::Time | GetRealTime () const |
| Get the real time when this state was generated. More... | |
| common::Time | GetSimTime () const |
| Get the sim time when this state was generated. More... | |
| common::Time | GetWallTime () const |
| Get the wall time when this state was generated. More... | |
| State | operator- (const State &_state) const |
| Subtraction operator. More... | |
| State & | operator= (const State &_state) |
| Assignment operator. More... | |
| void | SetName (const std::string &_name) |
| Set the name associated with this State. More... | |
| virtual void | SetRealTime (const common::Time &_time) |
| Set the real time when this state was generated. More... | |
| virtual void | SetSimTime (const common::Time &_time) |
| Set the sim time when this state was generated. More... | |
| virtual void | SetWallTime (const common::Time &_time) |
| Set the wall time when this state was generated. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &_out, const gazebo::physics::CollisionState &_state) |
| Stream insertion operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from gazebo::physics::State | |
| std::string | name |
| Name associated with this State. More... | |
| common::Time | realTime |
| common::Time | simTime |
| common::Time | wallTime |
| Times for the state data. More... | |
Store state information of a physics::Collision object.
This class captures the entire state of a Collision at one specific time during a simulation run.
| gazebo::physics::CollisionState::CollisionState | ( | ) |
Default constructor.
|
explicit |
Constructor.
Build a CollisionState from an existing Collision.
| [in] | _model | Pointer to the Link from which to gather state info. |
|
explicit |
Constructor.
Build a CollisionState from SDF data
| [in] | _sdf | SDF data to load a collision state from. |
|
virtual |
Destructor.
| void gazebo::physics::CollisionState::FillSDF | ( | sdf::ElementPtr | _sdf | ) |
Populate a state SDF element with data from the object.
| [out] | _sdf | SDF element to populate. |
| const math::Pose& gazebo::physics::CollisionState::GetPose | ( | ) | const |
Get the Collision pose.
| bool gazebo::physics::CollisionState::IsZero | ( | ) | const |
Return true if the values in the state are zero.
|
virtual |
Load state from SDF element.
Load CollisionState information from stored data in and SDF::Element
| [in] | _elem | Pointer to the SDF::Element containing state info. |
Reimplemented from gazebo::physics::State.
| CollisionState gazebo::physics::CollisionState::operator+ | ( | const CollisionState & | _state | ) | const |
Addition operator.
| [in] | _pt | A state to add. |
| CollisionState gazebo::physics::CollisionState::operator- | ( | const CollisionState & | _state | ) | const |
Subtraction operator.
| [in] | _pt | A state to substract. |
| CollisionState& gazebo::physics::CollisionState::operator= | ( | const CollisionState & | _state | ) |
|
friend |
Stream insertion operator.
| [in] | _out | output stream |
| [in] | _state | Collision state to output |