AbstractRobot Class Reference

Abstract class (interface) for robot in general. More...

#include <abstractrobot.h>

Inherits Trackable, and Configurable.

Inherited by OdeRobot.

Inheritance diagram for AbstractRobot:

Inheritance graph
[legend]
Collaboration diagram for AbstractRobot:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Abstract class (interface) for robot in general.
Examples:

integration/main.cpp, and main.cpp.


Constructor & Destructor Documentation

AbstractRobot const std::string &  name = "abstractRobot",
const std::string &  revision = "$ID$"
[inline]
 

Constructor.

Parameters:
name name of the robot
revision revision number of the file (Hint: use CVS variable
 $ID$ 
)

virtual ~AbstractRobot  )  [inline, virtual]
 


Member Function Documentation

virtual int getMotorNumber  )  [pure virtual]
 

returns number of motors

Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, Wheelie, and Hand.

virtual int getSensorNumber  )  [pure virtual]
 

returns number of sensors

Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, Wheelie, and Hand.

virtual int getSensors sensor sensors,
int  sensornumber
[pure virtual]
 

returns actual sensorvalues

Parameters:
sensors sensors scaled to [-1,1]
sensornumber length of the sensor array
Returns:
number of actually written sensors

Implemented in Arm2Segm, AtomComponent, Barrel2Masses, CaterPillar, Component, DefaultCaterPillar, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, Wheelie, and Hand.

virtual void setMotors const motor motors,
int  motornumber
[pure virtual]
 

sets actual motorcommands

Parameters:
motors motors scaled to [-1,1]
motornumber length of the motor array

Implemented in Arm2Segm, AtomComponent, CaterPillar, Component, DefaultCaterPillar, DefaultWheelie, ForcedSphere, Formel1, HurlingSnake, MuscledArm, Nimm2, Nimm4, RobotComponent, Schlange, SchlangeForce, SchlangeServo, SchlangeServo2, SchlangeVelocity, ShortCircuit, SliderWheelie, Sphererobot, Sphererobot3Masses, TruckMesh, Uwo, Wheelie, and Hand.


The documentation for this class was generated from the following file:
Generated on Tue Jan 16 02:14:45 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8