All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
gazebo::physics::PhysicsFactory Class Reference

The physics factory instantiates different physics engines. More...

#include <physics/physics.hh>

Static Public Member Functions

static PhysicsEnginePtr NewPhysicsEngine (const std::string &_className, WorldPtr _world)
 Create a new instance of a physics engine.
 
static void RegisterAll ()
 Register everything.
 
static void RegisterPhysicsEngine (std::string _className, PhysicsFactoryFn _factoryfn)
 Register a physics class.
 

Detailed Description

The physics factory instantiates different physics engines.

Member Function Documentation

static PhysicsEnginePtr gazebo::physics::PhysicsFactory::NewPhysicsEngine ( const std::string &  _className,
WorldPtr  _world 
)
static

Create a new instance of a physics engine.

Parameters
[in]_classNameName of the physics class.
[in]_worldWorld to pass to the created physics engine.
static void gazebo::physics::PhysicsFactory::RegisterAll ( )
static

Register everything.

static void gazebo::physics::PhysicsFactory::RegisterPhysicsEngine ( std::string  _className,
PhysicsFactoryFn  _factoryfn 
)
static

Register a physics class.

Parameters
[in]_classNameName of the physics class.
[in]_factoryfnFunction pointer used to create a physics engine.

The documentation for this class was generated from the following file: