22#include <gz/math/Pose3.hh>
23#include <gz/utils/ImplPtr.hh>
34#include "sdf/config.hh"
40 inline namespace SDF_VERSION_NAMESPACE {
46 struct PoseRelativeToGraph;
47 template <
typename T>
class ScopedGraph;
74 public: std::string
Name()
const;
79 public:
void SetName(
const std::string &_name);
109 public:
const gz::math::Pose3d &
RawPose()
const;
203 private:
void SetXmlParentName(
const std::string &_xmlParentName);
209 private:
void SetPoseRelativeToGraph(
218 GZ_UTILS_IMPL_PTR(dataPtr)
Geometry provides access to a shape, such as a Box.
Definition Geometry.hh:93
This class contains visual material properties.
Definition Material.hh:47
This class contains configuration options for the libsdformat parser.
Definition ParserConfig.hh:106
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
void SetLaserRetro(double _laserRetro)
Set the lidar reflective intensity.
bool CastShadows() const
Get whether the visual casts shadows.
std::string Name() const
Get the name of the visual.
void AddPlugin(const Plugin &_plugin)
Add a plugin to this object.
void SetName(const std::string &_name)
Set the name of the visual.
uint32_t VisibilityFlags() const
Get the visibility flags of a visual.
const Geometry * Geom() const
Get a pointer to the visual's geometry.
sdf::SemanticPose SemanticPose() const
Get SemanticPose object of this object to aid in resolving poses.
double LaserRetro() const
Get the flidar reflective intensity.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetRawPose(const gz::math::Pose3d &_pose)
Set the pose of the visual object.
const gz::math::Pose3d & RawPose() const
Get the pose of the visual object.
void ClearPlugins()
Remove all plugins.
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this visual.
Visual()
Default constructor.
const sdf::Material * Material() const
Get a pointer to the visual's material properties.
sdf::Plugins & Plugins()
Get a mutable vector of plugins attached to this object.
void SetPoseRelativeTo(const std::string &_frame)
Set the name of the coordinate frame relative to which this object's pose is expressed.
const std::string & PoseRelativeTo() const
Get the name of the coordinate frame relative to which this object's pose is expressed.
void SetCastShadows(bool _castShadows)
Set whether the visual casts shadows.
Errors Load(ElementPtr _sdf, const ParserConfig &_config)
Load the visual based on a element pointer.
Errors Load(ElementPtr _sdf)
Load the visual based on a element pointer.
void SetVisibilityFlags(uint32_t _flags)
Set the visibility flags of a visual.
void SetHasLaserRetro(bool _laserRetro)
Set whether the lidar reflective intensity has been specified.
void SetMaterial(const sdf::Material &_material)
Set the visual's material.
float Transparency() const
Get the transparency value of the visual.
void SetGeom(const Geometry &_geom)
Set the visual's geometry.
const sdf::Plugins & Plugins() const
Get the plugins attached to this object.
void SetTransparency(float _transparency)
Set the transparency value for the visual.
bool HasLaserRetro() const
Get whether the lidar reflective intensity was set was set.
std::vector< Plugin > Plugins
A vector of Plugin.
Definition Plugin.hh:245
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