Go to the documentation of this file.
17 #ifndef SDF_PHYSICS_HH_
18 #define SDF_PHYSICS_HH_
24 #include "sdf/sdf_config.h"
30 inline namespace SDF_VERSION_NAMESPACE {
74 public: std::string
Name()
const;
78 public:
void SetName(
const std::string &_name)
const;
129 private: PhysicsPrivate *dataPtr =
nullptr;
bool IsDefault() const
Get whether this physics profile is marked as default.
Physics()
Default constructor.
void SetName(const std::string &_name) const
Set the name of this set of physics parameters.
Physics(const Physics &_physics)
Copy constructor.
double RealTimeFactor() const
Get the target real time factor.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
std::string EngineType() const
Get the physics profile dynamics engine type.
void SetMaxStepSize(const double _step)
Set the max step size in seconds.
std::string Name() const
Get the name of this set of physics parameters.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
Physics(Physics &&_physics) noexcept
Move constructor.
void SetRealTimeFactor(const double _factor)
Set the target realtime factor.
void SetEngineType(const std::string &_type)
Set the physics profile dynamics engine type.
double MaxStepSize() const
Get the max step size in seconds.
The physics element specifies the type and properties of a dynamics engine.
Definition: Physics.hh:39
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
Errors Load(ElementPtr _sdf)
Load the physics based on an element pointer.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetDefault(const bool _default) const
Set whether this physics profile is the default.
Physics & operator=(Physics &&_physics)
Move assignment operator.
Physics & operator=(const Physics &_physics)
Copy assignment operator.