A collision element descibes the collison properties associated with a link. More...
#include <Collision.hh>
Public Member Functions | |
| Collision () | |
| Default constructor. More... | |
| Collision (const Collision &_collision) | |
| Copy constructor. More... | |
| Collision (Collision &&_collision) noexcept | |
| Move constructor. More... | |
| ~Collision () | |
| Destructor. 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... | |
| Collision & | operator= (Collision &&_collision) |
| Move assignment operator. More... | |
| Collision & | operator= (const Collision &_collision) |
| Copy assignment operator. More... | |
| const ignition::math::Pose3d & | Pose () const |
| Get the pose of the collision object. More... | |
| const std::string & | PoseFrame () const |
| Get the name of the coordinate frame in which this collision object's pose is expressed. More... | |
| void | SetGeom (const Geometry &_geom) |
| Set the collision's geometry. More... | |
| void | SetName (const std::string &_name) const |
| Set the name of the collision. More... | |
| void | SetPose (const ignition::math::Pose3d &_pose) |
| Set the pose of the collision object. More... | |
| void | SetPoseFrame (const std::string &_frame) |
| Set the name of the coordinate frame in which this collision object's pose is expressed. More... | |
A collision element descibes the collison 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::v8::Collision::Collision | ( | ) |
Default constructor.
| sdf::v8::Collision::Collision | ( | const Collision & | _collision | ) |
Copy constructor.
| [in] | _collision | Collision to copy. |
|
noexcept |
Move constructor.
| [in] | _collision | Collision to move. |
| sdf::v8::Collision::~Collision | ( | ) |
Destructor.
| sdf::ElementPtr sdf::v8::Collision::Element | ( | ) | const |
| const Geometry* sdf::v8::Collision::Geom | ( | ) | const |
Get a pointer to the collisions's geometry.
| Errors sdf::v8::Collision::Load | ( | ElementPtr | _sdf | ) |
| std::string sdf::v8::Collision::Name | ( | ) | const |
Get the name of the collision.
The name of the collision must be unique within the scope of a Link.
| const ignition::math::Pose3d& sdf::v8::Collision::Pose | ( | ) | const |
Get the pose of the collision object.
This is the pose of the collison as specified in SDF (<collision><pose> ... </pose></collision>).
| const std::string& sdf::v8::Collision::PoseFrame | ( | ) | const |
Get the name of the coordinate frame in which this collision object's pose is expressed.
A empty value indicates that the frame is the parent link.
| void sdf::v8::Collision::SetGeom | ( | const Geometry & | _geom | ) |
Set the collision's geometry.
| [in] | _geom | The geometry of the collision object |
| void sdf::v8::Collision::SetName | ( | const std::string & | _name | ) | const |
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::v8::Collision::SetPose | ( | const ignition::math::Pose3d & | _pose | ) |
Set the pose of the collision object.
| [in] | _pose | The pose of the collision object. |
| void sdf::v8::Collision::SetPoseFrame | ( | const std::string & | _frame | ) |
Set the name of the coordinate frame in which this collision object's pose is expressed.
A empty value indicates that the frame is the parent link.
| [in] | _frame | The name of the pose frame. |