Home
FAQ
Player
Utilities
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

ModelFactory.hh File Reference

Go to the source code of this file.

Defines

#define GZ_REGISTER_STATIC(name, classname)
 Static model registration macro.
#define GZ_REGISTER_PLUGIN(name, classname)
 Plugin model registration macro.

Typedefs

typedef Model *(* ModelFactoryFn )(World *)


Define Documentation

#define GZ_REGISTER_STATIC name,
classname   ) 
 

Value:

Model *New##classname(World *world) \
{ \
  return new classname(world); \
} \
void Register##classname() \
{\
  ModelFactory::RegisterModel("static", name, New##classname);\
}
Static model registration macro.

Use this macro to register models with the server.

Parameters:
name Model type name, as it appears in the world file.
classname C++ class name for the model.

#define GZ_REGISTER_PLUGIN name,
classname   ) 
 

Value:

Model *New##classname(World *world) \
{ \
  return new classname(world); \
} \
extern "C" \
{ \
  int gazebo_plugin_init(void) \
  { \
    ModelFactory::RegisterModel("plugin", name, New##classname); \
    return 0;\
  }\
}
Plugin model registration macro.

Use this macro to register plugin models with the server.

Parameters:
name Model type name, as it appears in the world file.
classname C++ class name for the model.


Typedef Documentation

typedef Model*(* ModelFactoryFn)(World *)
 



Last updated $Date: 2004/12/21 01:49:15 $
Generated on Sun May 22 18:39:08 2005 for Gazebo by doxygen 1.4.2