|
Public Types |
| enum | objects {
Base,
Pendular,
Pole1Bot,
Pole2Bot,
Pole3Bot,
Pole1Top,
Pole2Top,
Pole3Top
} |
Public Member Functions |
| | SphererobotTest (int startRoboterID, const OdeHandle &odeHandle, const SphererobotConf &conf) |
| | constructor
|
| virtual | ~SphererobotTest () |
| | Destruktor.
|
| virtual void | draw () |
| | Draws the geometrical objects of the robot.
|
| virtual void | place (Position pos, Color *c=0) |
| | Sets the sphere to position pos, sets color to c, and creates sphere if necessary.
|
| virtual bool | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
| | This is the collision handling function for snake robots.
|
| virtual int | getSensors (sensor *sensors, int sensornumber) |
| | Writes the sensor values to an array in the memory.
|
| virtual void | setMotors (const motor *motors, int motornumber) |
| | Reads the actual motor commands from an array, an sets all motors of the snake to this values.
|
| virtual int | getMotorNumber () |
| | Returns the number of motors used by the snake.
|
| virtual int | getSensorNumber () |
| | Returns the number of sensors used by the robot.
|
| virtual void | sensoraktualisierung () |
| | Updates the sensorarray.
|
| virtual void | getStatus () |
| | Prints some internal robot parameters.
|
Static Public Member Functions |
| SphererobotConf | getStandartConf () |
| void | mycallback (void *data, dGeomID o1, dGeomID o2) |
Public Attributes |
| SliderServo * | servo |
Protected Member Functions |
| virtual Object | getMainObject () |
Protected Attributes |
| SphererobotConf | conf |
| double | lastJointPos [3] |
Private Attributes |
| dSpaceID | sphererobot_space |
| vector< PID * > | motorliste2 |
It consists of a number of equal elements, each linked by a joint. This class is based upon the class roboter by the same author.