#include <schlangeforce.h>
Inheritance diagram for SchlangeForce:
It consists of a number of equal elements, each linked by a joint powered by torques added to joints
Definition at line 63 of file schlangeforce.h.
Public Member Functions | |
SchlangeForce (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const SchlangeConf &conf, const char *name) | |
virtual | ~SchlangeForce () |
virtual void | setMotors (const motor *motors, int motornumber) |
Reads the actual motor commands from an array, and sets all motors (forces) of the snake to this values. | |
virtual int | getSensors (sensor *sensors, int sensornumber) |
Writes the sensor values to an array in the memory. | |
virtual int | getSensorNumber () |
returns number of sensors | |
virtual int | getMotorNumber () |
returns number of motors |
|
Definition at line 48 of file schlangeforce.cpp. |
|
Definition at line 56 of file schlangeforce.cpp. |
|
returns number of motors
Implements Schlange. Definition at line 95 of file schlangeforce.h. |
|
returns number of sensors
Implements Schlange. Definition at line 91 of file schlangeforce.h. |
|
Writes the sensor values to an array in the memory.
Implements Schlange. Definition at line 94 of file schlangeforce.cpp. |
|
Reads the actual motor commands from an array, and sets all motors (forces) of the snake to this values. It is an linear allocation.
Implements Schlange. Definition at line 65 of file schlangeforce.cpp. |