#include <World.hh>
Public Member Functions | |
World () | |
Default constructor. More... | |
World (World &&_world) | |
Move constructor. More... | |
~World () | |
Destructor. More... | |
std::string | AudioDevice () const |
Get the audio device name. More... | |
ignition::math::Vector3d | Gravity () const |
Get the acceleration due to gravity. More... | |
Errors | Load (ElementPtr _sdf) |
Load the world based on a element pointer. More... | |
ignition::math::Vector3d | MagneticField () const |
Get the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinates property. More... | |
std::string | Name () const |
Get the name of the world. More... | |
void | SetAudioDevice (const std::string &_device) |
Set the audio device name. More... | |
void | SetGravity (const ignition::math::Vector3d &_gravity) |
Set the acceleration due to gravity. More... | |
void | SetMagneticField (const ignition::math::Vector3d &_mag) |
Set the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinate. More... | |
void | SetName (const std::string &_name) const |
Set the name of the world. More... | |
void | SetWindLinearVelocity (const ignition::math::Vector3d &_wind) |
Set the wind linear velocity in the global/world coordinate frame. More... | |
ignition::math::Vector3d | WindLinearVelocity () const |
Get the wind linear velocity in the global/world coordinate frame. More... | |
sdf::World::World | ( | ) |
Default constructor.
sdf::World::~World | ( | ) |
Destructor.
std::string sdf::World::AudioDevice | ( | ) | const |
Get the audio device name.
The audio device can be used to playback audio files. A value of "default" or an empty string indicates that the system's default audio device should be used.
ignition::math::Vector3d sdf::World::Gravity | ( | ) | const |
Get the acceleration due to gravity.
The default value is Earth's standard gravity at sea level, which equals [0, 0, -9.80665] \((\frac{m}{s^2})\)
Errors sdf::World::Load | ( | ElementPtr | _sdf | ) |
ignition::math::Vector3d sdf::World::MagneticField | ( | ) | const |
Get the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinates property.
A spherical coordindate can be specified in SDF using the <spherical_coordinates> element.
std::string sdf::World::Name | ( | ) | const |
Get the name of the world.
void sdf::World::SetAudioDevice | ( | const std::string & | _device | ) |
Set the audio device name.
See std::string AudioDevice() const for more information.
[in] | _device | The new audio device name. |
void sdf::World::SetGravity | ( | const ignition::math::Vector3d & | _gravity | ) |
Set the acceleration due to gravity.
Units are meters per second squared \((\frac{m}{s^2})\)
[in] | _gravity | The new gravity vector. |
void sdf::World::SetMagneticField | ( | const ignition::math::Vector3d & | _mag | ) |
Set the magnetic vector in Tesla, expressed in a coordinate frame defined by the SphericalCoordinate.
A spherical coordindate can be specified in SDF using the <spherical_coordinates> element.
[in] | _mag | The new magnetic field vector. |
void sdf::World::SetName | ( | const std::string & | _name | ) | const |
Set the name of the world.
[in] | _name | Name of the world. |
void sdf::World::SetWindLinearVelocity | ( | const ignition::math::Vector3d & | _wind | ) |
Set the wind linear velocity in the global/world coordinate frame.
Units are meters per second \((\frac{m}{s})\)
[in] | _win | The new linear velocity of wind. |
ignition::math::Vector3d sdf::World::WindLinearVelocity | ( | ) | const |
Get the wind linear velocity in the global/world coordinate frame.
Units are meters per second \((\frac{m}{s})\)