#include <hurlingsnake.h>
Inheritance diagram for HurlingSnake:
Definition at line 84 of file hurlingsnake.h.
Public Member Functions | |
HurlingSnake (const OdeHandle &odeHandle, const OsgHandle &osgHandle) | |
Constructor. | |
virtual void | update () |
update the subcomponents | |
virtual void | place (const osg::Matrix &pose) |
sets the pose of the vehicle | |
virtual bool | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
checks for internal collisions and treats them. | |
virtual void | doInternalStuff (const GlobalData &globalData) |
this function is called in each timestep. | |
virtual int | getSensors (sensor *sensors, int sensornumber) |
returns actual sensorvalues | |
virtual void | setMotors (const motor *motors, int motornumber) |
sets actual motorcommands | |
virtual int | getSensorNumber () |
returns number of sensors | |
virtual int | getMotorNumber () |
returns number of motors | |
virtual int | getSegmentsPosition (vector< Position > &poslist) |
returns a vector with the positions of all segments of the robot | |
virtual paramkey | getName () const |
returns the name of the object (with version number) | |
virtual paramlist | getParamList () const |
The list of all parameters with there value as allocated lists. | |
virtual paramval | getParam (const paramkey &key) const |
virtual bool | setParam (const paramkey &key, paramval val) |
Protected Member Functions | |
virtual Primitive * | getMainPrimitive () const |
the main object of the robot, which is used for position and speed tracking |
|
Constructor.
Definition at line 78 of file hurlingsnake.cpp. |
|
checks for internal collisions and treats them. In case of a treatment return true (collision will be ignored by other objects and the default routine) else false (collision is passed to other objects and (if not treated) to the default routine). Implements OdeRobot. Definition at line 150 of file hurlingsnake.cpp. |
|
this function is called in each timestep. It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
Implements OdeRobot. Definition at line 123 of file hurlingsnake.cpp. |
|
the main object of the robot, which is used for position and speed tracking
Implements OdeRobot. Definition at line 151 of file hurlingsnake.h. |
|
returns number of motors
Implements AbstractRobot. Definition at line 217 of file hurlingsnake.cpp. |
|
returns the name of the object (with version number)
Reimplemented from Configurable. Definition at line 139 of file hurlingsnake.h. |
|
Definition at line 295 of file hurlingsnake.cpp. |
|
The list of all parameters with there value as allocated lists.
Reimplemented from Configurable. Definition at line 285 of file hurlingsnake.cpp. |
|
returns a vector with the positions of all segments of the robot
Definition at line 226 of file hurlingsnake.cpp. |
|
returns number of sensors
Implements AbstractRobot. Definition at line 211 of file hurlingsnake.cpp. |
|
returns actual sensorvalues
Implements AbstractRobot. Definition at line 186 of file hurlingsnake.cpp. |
|
sets the pose of the vehicle
Implements OdeRobot. Definition at line 116 of file hurlingsnake.cpp. |
|
sets actual motorcommands
Implements AbstractRobot. Definition at line 203 of file hurlingsnake.cpp. |
|
Definition at line 303 of file hurlingsnake.cpp. |
|
update the subcomponents
Implements OdeRobot. Definition at line 105 of file hurlingsnake.cpp. |