53 public: std::string
Name()
const;
57 public:
void SetName(
const std::string &_name)
const;
88 public: ignition::math::Vector3d
Gravity()
const;
93 public:
void SetGravity(
const ignition::math::Vector3d &_gravity);
112 private: WorldPrivate *dataPtr =
nullptr;
std::string Name() const
Get the name of the world.
ignition::math::Vector3d WindLinearVelocity() const
Get the wind linear velocity in the global/world coordinate frame.
World()
Default constructor.
ignition::math::Vector3d MagneticField() const
Get the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinates...
void SetName(const std::string &_name) const
Set the name of the world.
ignition::math::Vector3d Gravity() const
Get the acceleration due to gravity.
Errors Load(ElementPtr _sdf)
Load the world based on a element pointer.
void SetGravity(const ignition::math::Vector3d &_gravity)
Set the acceleration due to gravity.
void SetWindLinearVelocity(const ignition::math::Vector3d &_wind)
Set the wind linear velocity in the global/world coordinate frame.
void SetMagneticField(const ignition::math::Vector3d &_mag)
Set the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinate.
std::string AudioDevice() const
Get the audio device name.
void SetAudioDevice(const std::string &_device)
Set the audio device name.
World(World &&_world)
Move constructor.
namespace for Simulation Description Format parser
Definition Console.hh:36
std::shared_ptr< Element > ElementPtr
Definition Element.hh:47
std::vector< Error > Errors
A vector of Error.
Definition Types.hh:69
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:48