Go to the documentation of this file.
23 #include <ignition/math/SphericalCoordinates.hh>
24 #include <ignition/math/Vector3.hh>
25 #include <ignition/utils/ImplPtr.hh>
32 #include "sdf/sdf_config.h"
38 inline namespace SDF_VERSION_NAMESPACE {
50 struct PoseRelativeToGraph;
51 struct FrameAttachedToGraph;
52 template <
typename T>
class ScopedGraph;
80 public:
Errors ValidateGraphs()
const;
84 public: std::string Name()
const;
88 public:
void SetName(
const std::string &_name);
94 public: std::string AudioDevice()
const;
100 public:
void SetAudioDevice(
const std::string &_device);
106 public: ignition::math::Vector3d WindLinearVelocity()
const;
112 public:
void SetWindLinearVelocity(
const ignition::math::Vector3d &_wind);
119 public: ignition::math::Vector3d Gravity()
const;
124 public:
void SetGravity(
const ignition::math::Vector3d &_gravity);
132 public: ignition::math::Vector3d MagneticField()
const;
140 public:
void SetMagneticField(
const ignition::math::Vector3d &_mag);
144 public:
const ignition::math::SphericalCoordinates *
145 SphericalCoordinates()
const;
149 public:
void SetSphericalCoordinates(
150 const ignition::math::SphericalCoordinates &_coord);
157 public: uint64_t ModelCount()
const;
165 public:
const Model *ModelByIndex(
const uint64_t _index)
const;
174 public:
const Model *ModelByName(
const std::string &_name)
const;
181 public:
bool ModelNameExists(
const std::string &_name)
const;
187 public:
bool AddModel(
const Model &_model);
193 public:
bool AddActor(
const Actor &_actor);
199 public:
bool AddLight(
const Light &_light);
202 public:
void ClearModels();
205 public:
void ClearActors();
208 public:
void ClearLights();
212 public: uint64_t ActorCount()
const;
219 public:
const Actor *ActorByIndex(
const uint64_t _index)
const;
224 public:
bool ActorNameExists(
const std::string &_name)
const;
231 public: uint64_t FrameCount()
const;
240 public:
const Frame *FrameByIndex(
const uint64_t _index)
const;
248 public:
const Frame *FrameByName(
const std::string &_name)
const;
255 public:
bool FrameNameExists(
const std::string &_name)
const;
259 public: uint64_t LightCount()
const;
266 public:
const Light *LightByIndex(
const uint64_t _index)
const;
271 public:
bool LightNameExists(
const std::string &_name)
const;
291 public:
void SetGui(
const sdf::Gui &_gui);
301 public:
void SetScene(
const sdf::Scene &_scene);
311 public: uint64_t PhysicsCount()
const;
319 public:
const Physics *PhysicsByIndex(
const uint64_t _index)
const;
323 public:
const Physics *PhysicsDefault()
const;
328 public:
bool PhysicsNameExists(
const std::string &_name)
const;
334 public: uint64_t InterfaceModelCount()
const;
342 public: std::shared_ptr<const InterfaceModel> InterfaceModelByIndex(
343 const uint64_t _index)
const;
352 public:
const NestedInclude* InterfaceModelNestedIncludeByIndex(
353 const uint64_t _index)
const;
359 private:
void SetPoseRelativeToGraph(
366 private:
void SetFrameAttachedToGraph(
374 IGN_UTILS_IMPL_PTR(dataPtr)
Definition: Collision.hh:39
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
Provides a description of an actor.
Definition: Actor.hh:190
Contains the necessary information about an included model file for custom model parsers to be able t...
Definition: InterfaceElements.hh:44
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Provides a description of a light source.
Definition: Light.hh:63
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:106
A Frame element descibes the properties associated with an explicit frame defined in a Model or World...
Definition: Frame.hh:42
#define SDFORMAT_VISIBLE
Definition: system_util.hh:41
SDF Element class.
Definition: Element.hh:73
The Atmosphere class contains information about an atmospheric model and related parameters such as t...
Definition: Atmosphere.hh:45
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
The physics element specifies the type and properties of a dynamics engine.
Definition: Physics.hh:36
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54