Representation of a preset physics profile.
More...
#include <gazebo/physics/PresetManager.hh>
Representation of a preset physics profile.
gazebo::physics::Preset::Preset |
( |
| ) |
|
gazebo::physics::Preset::Preset |
( |
const std::string & |
_name | ) |
|
Constructor.
- Parameters
-
[in] | _name | The name of the preset profile. |
gazebo::physics::Preset::~Preset |
( |
| ) |
|
bool gazebo::physics::Preset::GetParam |
( |
const std::string & |
_key, |
|
|
boost::any & |
_value |
|
) |
| const |
Get a profile parameter.
- Parameters
-
[in] | _key | The key of the parameter to retrieve. |
[out] | _value | The parameter value at the input key. |
- Returns
- True if the parameter exists in the map, false otherwise.
bool gazebo::physics::Preset::HasParam |
( |
const std::string & |
_key | ) |
const |
Check if profile parameter is set.
- Parameters
-
[in] | _key | The profile key to check. |
- Returns
- True if the profile has parameter _key, false otherwise
std::string gazebo::physics::Preset::Name |
( |
| ) |
const |
Get the profile name.
- Returns
- The name of the preset profile.
sdf::ElementPtr gazebo::physics::Preset::SDF |
( |
| ) |
const |
Get this preset profile's SDF.
- Returns
- An SDF element pointer representing a <physics> element
bool gazebo::physics::Preset::SDF |
( |
const sdf::ElementPtr |
_sdfElement | ) |
|
Set this preset profile's SDF.
- Parameters
-
[in] | _sdfElement | Pointer to an SDF physics element. |
- Returns
- True if setting the profile SDF was successful.
bool gazebo::physics::Preset::SetAllParamsFromSDF |
( |
const sdf::ElementPtr |
_elem | ) |
|
Set all parameters of this preset based on the key/value pairs in the given SDF element.
- Parameters
-
[in] | _elem | The physics SDF element from which to read values. |
- Returns
- True if setting all parameters was successful.
bool gazebo::physics::Preset::SetAllPhysicsParameters |
( |
PhysicsEnginePtr |
_physicsEngine | ) |
const |
Set all parameters of this preset in the physics engine.
- Parameters
-
[in] | _physicsEngine | The physics engine in which to affect the change. |
- Returns
- True if setting all parameters was successful.
bool gazebo::physics::Preset::SetParam |
( |
const std::string & |
_key, |
|
|
const boost::any & |
_value |
|
) |
| |
Set a profile parameter.
- Parameters
-
[in] | _key | The key of the parameter to change. |
[in] | _value | The new value of the parameter. |
The documentation for this class was generated from the following file: