17#ifndef SDF_PHYSICS_HH_
18#define SDF_PHYSICS_HH_
21#include <ignition/utils/ImplPtr.hh>
25#include "sdf/sdf_config.h"
31 inline namespace SDF_VERSION_NAMESPACE {
51 public: std::string
Name()
const;
55 public:
void SetName(
const std::string &_name);
106 IGN_UTILS_IMPL_PTR(dataPtr)
The physics element specifies the type and properties of a dynamics engine.
Definition Physics.hh:37
Physics()
Default constructor.
void SetName(const std::string &_name)
Set the name of this set of physics parameters.
bool IsDefault() const
Get whether this physics profile is marked as default.
void SetDefault(const bool _default)
Set whether this physics profile is the default.
void SetRealTimeFactor(const double _factor)
Set the target realtime factor.
std::string Name() const
Get the name of this set of physics parameters.
std::string EngineType() const
Get the physics profile dynamics engine type.
double MaxStepSize() const
Get the max step size in seconds.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
double RealTimeFactor() const
Get the target real time factor.
Errors Load(ElementPtr _sdf)
Load the physics based on an element pointer.
void SetMaxStepSize(const double _step)
Set the max step size in seconds.
void SetEngineType(const std::string &_type)
Set the physics profile dynamics engine type.
std::vector< Error > Errors
A vector of Error.
Definition Types.hh:106
std::shared_ptr< Element > ElementPtr
Definition Element.hh:54
namespace for Simulation Description Format parser
Definition Actor.hh:34
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:41