#include <schlangeservo2.h>
Inherits Schlange.
Inherited by PlattfussSchlange.
Inheritance diagram for SchlangeServo2:


Public Member Functions | |
| SchlangeServo2 (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const SchlangeConf &conf, const std::string &name, const std::string &revision="") | |
| virtual | ~SchlangeServo2 () |
| virtual void | setMotors (const motor *motors, int motornumber) |
| Reads the actual motor commands from an array, an 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 | |
| virtual bool | setParam (const paramkey &key, paramval val) |
| sets the value of the given parameter or does nothing if unknown. | |
Private Member Functions | |
| virtual void | create (const osg::Matrix &pose) |
| creates vehicle at desired position | |
| virtual void | destroy () |
| destroys vehicle and space | |
Private Attributes | |
| std::vector< UniversalServo * > | servos |
It consists of a number of equal elements, each linked by a joint powered by 2 servos
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
creates vehicle at desired position
Reimplemented from Schlange.
|
|
|
destroys vehicle and space
Reimplemented from Schlange.
|
|
|
returns number of motors
Implements Schlange.
|
|
|
returns number of sensors
Implements Schlange.
|
|
||||||||||||
|
Writes the sensor values to an array in the memory.
Implements Schlange.
|
|
||||||||||||
|
Reads the actual motor commands from an array, an sets all motors (forces) of the snake to this values. It is an linear allocation.
Implements Schlange.
|
|
||||||||||||
|
sets the value of the given parameter or does nothing if unknown.
Reimplemented from Schlange.
|
|
|
|
1.3.8