17 #ifndef SDF_PHYSICS_HH_
18 #define SDF_PHYSICS_HH_
21 #include <gz/utils/ImplPtr.hh>
31 inline namespace SDF_VERSION_NAMESPACE {
51 public: std::string
Name()
const;
55 public:
void SetName(
const std::string &_name);
133 GZ_UTILS_IMPL_PTR(dataPtr)
The physics element specifies the type and properties of a dynamics engine.
Definition: Physics.hh:37
bool IsDefault() const
Get whether this physics profile is marked as default.
void SetMaxStepSize(const double _step)
Set the max step size in seconds.
sdf::ElementPtr ToElement(sdf::Errors &_errors) const
Create and return an SDF element filled with data from this physics.
Physics()
Default constructor.
void SetMaxContacts(int _maxContacts)
Set the maximum number of contacts allowed between two entities.
double MaxStepSize() const
Get the max step size in seconds.
std::string EngineType() const
Get the physics profile dynamics engine type.
void SetDefault(const bool _default)
Set whether this physics profile is the default.
void SetEngineType(const std::string &_type)
Set the physics profile dynamics engine type.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
Errors Load(ElementPtr _sdf)
Load the physics based on an element pointer.
int MaxContacts() const
Get the maximum number of contacts allowed between two entities.
void SetRealTimeFactor(const double _factor)
Set the target realtime factor.
double RealTimeFactor() const
Get the target real time factor.
void SetName(const std::string &_name)
Set the name of this set of physics parameters.
std::string Name() const
Get the name of this set of physics parameters.
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this physics.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:95
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55
namespace for Simulation Description Format parser
Definition: Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:25