The physics factory instantiates different physics engines.
More...
#include <physics/physics.hh>
The physics factory instantiates different physics engines.
static bool gazebo::physics::PhysicsFactory::IsRegistered |
( |
const std::string & |
_name) | |
|
|
static |
Check if a physics engine is registered.
- Parameters
-
[in] | _name | Name of the physics engine. |
- Returns
- True if physics engine is registered, false otherwise.
static PhysicsEnginePtr gazebo::physics::PhysicsFactory::NewPhysicsEngine |
( |
const std::string & |
_className, |
|
|
WorldPtr |
_world |
|
) |
| |
|
static |
Create a new instance of a physics engine.
- Parameters
-
[in] | _className | Name of the physics class. |
[in] | _world | World to pass to the created physics engine. |
static void gazebo::physics::PhysicsFactory::RegisterAll |
( |
) | |
|
|
static |
static void gazebo::physics::PhysicsFactory::RegisterPhysicsEngine |
( |
std::string |
_className, |
|
|
PhysicsFactoryFn |
_factoryfn |
|
) |
| |
|
static |
Register a physics class.
- Parameters
-
[in] | _className | Name of the physics class. |
[in] | _factoryfn | Function pointer used to create a physics engine. |
The documentation for this class was generated from the following file: