61 virtual int set(
const motor* values,
int length) = 0;
virtual int set(const motor *values, int length)=0
sends the action commands to the motor.
virtual bool act(GlobalData &globaldata)=0
performs the actions, This is usually called in doInternalStuff() from the robot
Abstact base class for attachable motors.
Definition: motor.h:35
virtual std::list< SensorMotorInfo > getMotorInfos() const
returns a list of motor names (
Definition: motor.h:49
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
Data structure holding all essential global information.
Definition: globaldata.h:57
virtual void init(Primitive *own, Joint *joint=0)=0
initialises motor with body of robot
double motor
Definition: types.h:30
Motor()
Definition: motor.h:37
virtual ~Motor()
Definition: motor.h:39
Abstract class for giving names to sensors and motors.
Definition: sensormotorinfoable.h:37
std::list< SensorMotorInfo > getInfos(int number) const
get all infos.
Definition: sensormotorinfoable.h:81
virtual int getMotorNumber() const =0
return the dimensionality of this motor