22#include <gz/math/Pose3.hh>
23#include <gz/utils/ImplPtr.hh>
27#include "sdf/config.hh"
33 inline namespace SDF_VERSION_NAMESPACE {
36 struct FrameAttachedToGraph;
37 struct PoseRelativeToGraph;
38 template <
typename T>
class ScopedGraph;
58 public:
const std::string &
Name()
const;
63 public:
void SetName(
const std::string &_name);
90 public:
const gz::math::Pose3d &
RawPose()
const;
146 private:
void SetFrameAttachedToGraph(
153 private:
void SetPoseRelativeToGraph(
161 GZ_UTILS_IMPL_PTR(dataPtr)
A Frame element descibes the properties associated with an explicit frame defined in a Model or World...
Definition Frame.hh:43
const gz::math::Pose3d & RawPose() const
Get the pose of the frame object.
sdf::SemanticPose SemanticPose() const
Get SemanticPose object of this object to aid in resolving poses.
void SetAttachedTo(const std::string &_frame)
Set the name of the coordinate frame to which this frame is attached.
const std::string & AttachedTo() const
Get the name of the coordinate frame to which this frame is attached.
void SetRawPose(const gz::math::Pose3d &_pose)
Set the raw pose of the frame object.
void SetName(const std::string &_name)
Set the name of the frame.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetPoseRelativeTo(const std::string &_frame)
Set the name of the coordinate frame relative to which this frame's pose is expressed.
Frame()
Default constructor.
sdf::ElementPtr ToElement(sdf::Errors &_errors) const
Create and return an SDF element filled with data from this frame.
Errors Load(ElementPtr _sdf)
Load the frame based on a element pointer.
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this frame.
Errors ResolveAttachedToBody(std::string &_body) const
Resolve the attached-to body of this frame from the FrameAttachedToGraph.
const std::string & PoseRelativeTo() const
Get the name of the coordinate frame relative to which this frame's pose is expressed.
const std::string & Name() const
Get the name of the frame.
Definition Collision.hh:44
SemanticPose is a data structure that can be used by different DOM objects to resolve poses on a Pose...
Definition SemanticPose.hh:55
std::vector< Error > Errors
A vector of Error.
Definition Types.hh:81
std::shared_ptr< Element > ElementPtr
Definition Element.hh:55
namespace for Simulation Description Format parser
Definition Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:25