include/gz/physics/World.hh
Go to the documentation of this file.
The implementation API for the collision detector.
Definition: include/gz/physics/World.hh:50
virtual const std::string & GetWorldCollisionDetector(const Identity &_id) const =0
Implementation API for getting the collision detector.
virtual void SetWorldCollisionDetector(const Identity &_id, const std::string &_collisionDetector)=0
Implementation API for setting the collision detector.
The World API for setting the collision detector.
Definition: include/gz/physics/World.hh:36
void SetCollisionDetector(const std::string &_collisionDetector)
Set the name of the collision detector to use.
const std::string & GetCollisionDetector() const
Get the name of the collision detector in use.
Definition: include/gz/physics/World.hh:32
Definition: gz/physics/Feature.hh:93
Placeholder class in case a Feature does not define its own World API.
Definition: gz/physics/Feature.hh:50
This class defines the concept of a Feature. It should be inherited by classes that define some plugi...
Definition: gz/physics/Feature.hh:36
Container for specifying Frame IDs. We do not want to use a generic integer type for this,...
Definition: gz/physics/FrameID.hh:47
The implementation API for the gravity.
Definition: include/gz/physics/World.hh:113
virtual void SetWorldGravity(const Identity &_id, const LinearVectorType &_gravity)=0
Implementation API for setting the gravity vector, which is expressed in the World frame....
virtual LinearVectorType GetWorldGravity(const Identity &_id) const =0
Implementation API for getting the gravity expressed in the world frame.
typename FromPolicy< PolicyT >::template Use< LinearVector > LinearVectorType
Definition: include/gz/physics/World.hh:115
The World API for getting and setting the gravity vector.
Definition: include/gz/physics/World.hh:77
void SetGravity(const LinearVectorType &_gravity, const FrameID &_forceInCoordinatesOf=FrameID::World())
Set the World gravity vector. Optionally, you may specify the frame whose coordinates are used to exp...
LinearVectorType GetGravity(const FrameID &_forceInCoordinatesOf=FrameID::World()) const
Get the World gravity vector. Optionally, you may specify the frame whose coordinates are used to exp...
void SetGravity(const RelativeForceType &_gravity)
Set the World gravity vector.
typename FromPolicy< PolicyT >::template Use< LinearVector > LinearVectorType
Definition: include/gz/physics/World.hh:79
typename FromPolicy< PolicyT >::template Use< RelativeForce > RelativeForceType
Definition: include/gz/physics/World.hh:82
Get and set the World's gravity vector in a specified frame.
Definition: include/gz/physics/World.hh:73
The implementation API for the solver.
Definition: include/gz/physics/World.hh:152
virtual void SetWorldSolver(const Identity &_id, const std::string &_solver)=0
Implementation API for setting the solver.
virtual const std::string & GetWorldSolver(const Identity &_id) const =0
Implementation API for getting the solver.
The World API for setting the solver.
Definition: include/gz/physics/World.hh:139
const std::string & GetSolver() const
Get the name of the solver in use.
void SetSolver(const std::string &_solver)
Set the name of the solver to use.
Definition: include/gz/physics/World.hh:135
Use a FeatureList to aggregate a list of Features.
Definition: gz/physics/FeatureList.hh:62
If your feature is known to require any other features, then you should have your feature class inher...
Definition: gz/physics/FeatureList.hh:118
This struct is used to conveniently convert from a policy to a geometric type. Example usage:
Definition: gz/physics/Geometry.hh:78