A collision element descibes the collision properties associated with a link. More...
#include <Collision.hh>
| Public Member Functions | |
| Collision () | |
| Default constructor.  More... | |
| sdf::ElementPtr | Element () const | 
| Get a pointer to the SDF element that was used during load.  More... | |
| const Geometry * | Geom () const | 
| Get a pointer to the collisions's geometry.  More... | |
| Errors | Load (ElementPtr _sdf) | 
| Load the collision based on a element pointer.  More... | |
| std::string | Name () const | 
| Get the name of the collision.  More... | |
| const std::string & | PoseRelativeTo () const | 
| Get the name of the coordinate frame relative to which this object's pose is expressed.  More... | |
| const ignition::math::Pose3d & | RawPose () const | 
| Get the pose of the collision object.  More... | |
| sdf::SemanticPose | SemanticPose () const | 
| Get SemanticPose object of this object to aid in resolving poses.  More... | |
| void | SetGeom (const Geometry &_geom) | 
| Set the collision's geometry.  More... | |
| void | SetName (const std::string &_name) | 
| Set the name of the collision.  More... | |
| void | SetPoseRelativeTo (const std::string &_frame) | 
| Set the name of the coordinate frame relative to which this object's pose is expressed.  More... | |
| void | SetRawPose (const ignition::math::Pose3d &_pose) | 
| Set the pose of the collision object.  More... | |
| void | SetSurface (const sdf::Surface &_surface) | 
| Set the collision's surface parameters.  More... | |
| const sdf::Surface * | Surface () const | 
| Get a pointer to the collisions's surface parameters.  More... | |
A collision element descibes the collision properties associated with a link.
This can be different from the visual properties of a link. For example, simple collision models are often used to reduce computation time.
| sdf::v11::Collision::Collision | ( | ) | 
Default constructor.
| sdf::ElementPtr sdf::v11::Collision::Element | ( | ) | const | 
| const Geometry* sdf::v11::Collision::Geom | ( | ) | const | 
Get a pointer to the collisions's geometry.
| Errors sdf::v11::Collision::Load | ( | ElementPtr | _sdf | ) | 
| std::string sdf::v11::Collision::Name | ( | ) | const | 
Get the name of the collision.
The name of the collision must be unique within the scope of a Link.
| const std::string& sdf::v11::Collision::PoseRelativeTo | ( | ) | const | 
Get the name of the coordinate frame relative to which this object's pose is expressed.
An empty value indicates that the frame is relative to the parent link.
| const ignition::math::Pose3d& sdf::v11::Collision::RawPose | ( | ) | const | 
Get the pose of the collision object.
This is the pose of the collison as specified in SDF (<collision><pose> ... </pose></collision>).
| sdf::SemanticPose sdf::v11::Collision::SemanticPose | ( | ) | const | 
Get SemanticPose object of this object to aid in resolving poses.
| void sdf::v11::Collision::SetGeom | ( | const Geometry & | _geom | ) | 
Set the collision's geometry.
| [in] | _geom | The geometry of the collision object | 
| void sdf::v11::Collision::SetName | ( | const std::string & | _name | ) | 
Set the name of the collision.
The name of the collision must be unique within the scope of a Link.
| [in] | _name | Name of the collision. | 
| void sdf::v11::Collision::SetPoseRelativeTo | ( | const std::string & | _frame | ) | 
Set the name of the coordinate frame relative to which this object's pose is expressed.
An empty value indicates that the frame is relative to the parent link.
| [in] | _frame | The name of the pose relative-to frame. | 
| void sdf::v11::Collision::SetRawPose | ( | const ignition::math::Pose3d & | _pose | ) | 
Set the pose of the collision object.
| [in] | _pose | The pose of the collision object. | 
| void sdf::v11::Collision::SetSurface | ( | const sdf::Surface & | _surface | ) | 
Set the collision's surface parameters.
| [in] | _surface | The surface parameters of the collision object | 
| const sdf::Surface* sdf::v11::Collision::Surface | ( | ) | const | 
Get a pointer to the collisions's surface parameters.