Store state information of a physics::Collision object.
More...
#include <physics/phyiscs.hh>
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.
State of a Collision is its Pose.
gazebo::physics::CollisionState::CollisionState |
( |
| ) |
|
gazebo::physics::CollisionState::CollisionState |
( |
const CollisionPtr |
_collision | ) |
|
|
explicit |
Constructor.
Build a CollisionState from an existing Collision.
- Parameters
-
[in] | _model | Pointer to the Link from which to gather state info. |
gazebo::physics::CollisionState::CollisionState |
( |
const sdf::ElementPtr |
_sdf | ) |
|
|
explicit |
Constructor.
Build a CollisionState from SDF data
- Parameters
-
[in] | _sdf | SDF data to load a collision state from. |
virtual gazebo::physics::CollisionState::~CollisionState |
( |
| ) |
|
|
virtual |
const math::Pose& gazebo::physics::CollisionState::GetPose |
( |
| ) |
const |
bool gazebo::physics::CollisionState::IsZero |
( |
| ) |
const |
Return true if the values in the state are zero.
- Returns
- True if the values in the state are zero.
virtual void gazebo::physics::CollisionState::Load |
( |
const sdf::ElementPtr |
_elem | ) |
|
|
virtual |
Load state from SDF element.
Load CollisionState information from stored data in and SDF::Element
- Parameters
-
[in] | _elem | Pointer to the SDF::Element containing state info. |
Reimplemented from gazebo::physics::State.
Addition operator.
- Parameters
-
- Returns
- The resulting state.
Subtraction operator.
- Parameters
-
[in] | _pt | A state to substract. |
- Returns
- The resulting state.
Assignment operator.
- Parameters
-
- Returns
- Reference to this
Stream insertion operator.
- Parameters
-
[in] | _out | output stream |
[in] | _state | Collision state to output |
- Returns
- the stream
The documentation for this class was generated from the following file: