#include <abstractrobot.h>
Inherits Trackable, and Configurable.
Inherited by OdeRobot.
Inheritance diagram for AbstractRobot:


Public Member Functions | |
| AbstractRobot (const std::string &name="abstractRobot", const std::string &revision="$ID$") | |
| Constructor. | |
| virtual | ~AbstractRobot () |
| virtual int | getSensors (sensor *sensors, int sensornumber)=0 |
| returns actual sensorvalues | |
| virtual void | setMotors (const motor *motors, int motornumber)=0 |
| sets actual motorcommands | |
| virtual int | getSensorNumber ()=0 |
| returns number of sensors | |
| virtual int | getMotorNumber ()=0 |
| returns number of motors | |
integration/main.cpp, and main.cpp.
| AbstractRobot | ( | const std::string & | name = "abstractRobot", |
|
| const std::string & | revision = "$ID$" | |||
| ) | [inline] |
Constructor.
| name | name of the robot | |
| revision | revision number of the file (Hint: use CVS variable$ID$ |
| virtual ~AbstractRobot | ( | ) | [inline, virtual] |
| virtual int getMotorNumber | ( | ) | [pure virtual] |
returns number of motors
Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultSliderWheelie, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, and Wheelie.
| virtual int getSensorNumber | ( | ) | [pure virtual] |
returns number of sensors
Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultSliderWheelie, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, and Wheelie.
| virtual int getSensors | ( | sensor * | sensors, | |
| int | sensornumber | |||
| ) | [pure virtual] |
returns actual sensorvalues
| sensors | sensors scaled to [-1,1] | |
| sensornumber | length of the sensor array |
Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultSliderWheelie, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, and Wheelie.
| virtual void setMotors | ( | const motor * | motors, | |
| int | motornumber | |||
| ) | [pure virtual] |
sets actual motorcommands
| motors | motors scaled to [-1,1] | |
| motornumber | length of the motor array |
Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultSliderWheelie, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, and Wheelie.
1.4.7