#include <motor.h>
Inherited by DummyMotor, and Speaker.
Inheritance diagram for Motor:
Public Member Functions | |
Motor () | |
virtual | ~Motor () |
virtual void | init (Primitive *own)=0 |
initialises motor with body of robot | |
virtual int | getMotorNumber () const =0 |
return the dimensionality of this motor | |
virtual bool | act (GlobalData &globaldata)=0 |
performs the actions, This is usually called in doInternalStuff() from the robot | |
virtual int | set (const motor *values, int length)=0 |
sends the action commands to the motor. |
Motor | ( | ) | [inline] |
virtual ~Motor | ( | ) | [inline, virtual] |
virtual bool act | ( | GlobalData & | globaldata | ) | [pure virtual] |
performs the actions, This is usually called in doInternalStuff() from the robot
Implemented in DummyMotor, and Speaker.
virtual int getMotorNumber | ( | ) | const [pure virtual] |
virtual void init | ( | Primitive * | own | ) | [pure virtual] |
virtual int set | ( | const motor * | values, | |
int | length | |||
) | [pure virtual] |
sends the action commands to the motor.
It returns the number of used values. (should be equal to getMotorNumber)
Implemented in DummyMotor, and Speaker.