A Frame element descibes the properties associated with an explicit frame defined in a Model or World. More...
#include <Frame.hh>
Public Member Functions | |
| Frame () | |
| Default constructor. More... | |
| Frame (const Frame &_frame) | |
| Copy constructor. More... | |
| Frame (Frame &&_frame) | |
| Move constructor. More... | |
| ~Frame () | |
| Destructor. More... | |
| const std::string & | AttachedTo () const |
| Get the name of the coordinate frame to which this frame is attached. More... | |
| sdf::ElementPtr | Element () const |
| Get a pointer to the SDF element that was used during load. More... | |
| Errors | Load (ElementPtr _sdf) |
| Load the frame based on a element pointer. More... | |
| const std::string & | Name () const |
| Get the name of the frame. More... | |
| Frame & | operator= (const Frame &_frame) |
| Assignment operator. More... | |
| Frame & | operator= (Frame &&_frame) |
| Move assignment operator. More... | |
| const std::string & | PoseRelativeTo () const |
| Get the name of the coordinate frame relative to which this frame's pose is expressed. More... | |
| const ignition::math::Pose3d & | RawPose () const |
| Get the pose of the frame object. More... | |
| Errors | ResolveAttachedToBody (std::string &_body) const |
| Resolve the attached-to body of this frame from the FrameAttachedToGraph. More... | |
| sdf::SemanticPose | SemanticPose () const |
| Get SemanticPose object of this object to aid in resolving poses. More... | |
| void | SetAttachedTo (const std::string &_frame) |
| Set the name of the coordinate frame to which this frame is attached. More... | |
| void | SetName (const std::string &_name) const |
| Set the name of the frame. More... | |
| void | SetPoseRelativeTo (const std::string &_frame) |
| Set the name of the coordinate frame relative to which this frame's pose is expressed. More... | |
| void | SetRawPose (const ignition::math::Pose3d &_pose) |
| Set the raw pose of the frame object. More... | |
A Frame element descibes the properties associated with an explicit frame defined in a Model or World.
| sdf::v10::Frame::Frame | ( | ) |
Default constructor.
| sdf::v10::Frame::Frame | ( | const Frame & | _frame | ) |
Copy constructor.
| [in] | _frame | Frame to copy. |
| sdf::v10::Frame::~Frame | ( | ) |
Destructor.
| const std::string& sdf::v10::Frame::AttachedTo | ( | ) | const |
Get the name of the coordinate frame to which this frame is attached.
The interpretation of an empty value depends on whether the frame is contained in a model or world element. For a frame that is a child of <model>, an empty value indicates that the frame is attached to the canonical link of the model. For a frame that is a child of <world> an empty value indicates that the frame is attached to the world frame.
| sdf::ElementPtr sdf::v10::Frame::Element | ( | ) | const |
| Errors sdf::v10::Frame::Load | ( | ElementPtr | _sdf | ) |
| const std::string& sdf::v10::Frame::Name | ( | ) | const |
Get the name of the frame.
The name of the frame must be unique within the scope of its siblings.
Assignment operator.
| [in] | _frame | The frame to set values from. |
| const std::string& sdf::v10::Frame::PoseRelativeTo | ( | ) | const |
Get the name of the coordinate frame relative to which this frame's pose is expressed.
An empty value indicates that the frame is expressed relative to the attached-to link.
| const ignition::math::Pose3d& sdf::v10::Frame::RawPose | ( | ) | const |
Get the pose of the frame object.
This is the pose of the frame as specified in SDF (<frame><pose> ... </pose></frame>). Use SemanticPose to compute the pose relative to a specific frame.
| Errors sdf::v10::Frame::ResolveAttachedToBody | ( | std::string & | _body | ) | const |
Resolve the attached-to body of this frame from the FrameAttachedToGraph.
If this is in a model scope, it returns the name of a link. In the world scope, it returns the name of a model or the world.
| [out] | _body | Name of body to which this frame is attached. |
| sdf::SemanticPose sdf::v10::Frame::SemanticPose | ( | ) | const |
Get SemanticPose object of this object to aid in resolving poses.
| void sdf::v10::Frame::SetAttachedTo | ( | const std::string & | _frame | ) |
Set the name of the coordinate frame to which this frame is attached.
The interpretation of an empty value depends on whether the frame is contained in a model or world element. For a frame that is a child of <model>, an empty value indicates that the frame is attached to the canonical link of the model. For a frame that is a child of <world> an empty value indicates that the frame is attached to the world frame.
| [in] | _frame | The name of the attached-to frame. |
| void sdf::v10::Frame::SetName | ( | const std::string & | _name | ) | const |
Set the name of the frame.
The name of the frame must be unique within the scope of its siblings.
| [in] | _name | Name of the frame. |
| void sdf::v10::Frame::SetPoseRelativeTo | ( | const std::string & | _frame | ) |
Set the name of the coordinate frame relative to which this frame's pose is expressed.
An empty value indicates that the frame is expressed relative to the attached-to link.
| [in] | _frame | The name of the relative-to frame. |
| void sdf::v10::Frame::SetRawPose | ( | const ignition::math::Pose3d & | _pose | ) |
Set the raw pose of the frame object.
This is interpreted relative to the frame named in the //pose/@relative_to attribute.
| [in] | _pose | The pose of the frame object. |