MotorController Class Reference

MotorController Class. More...

Inheritance diagram for MotorController:

List of all members.

Public Member Functions

 MotorController (World *world)
 constructor
virtual ~MotorController ()
 Destructor.
bool isEnabled ()
 return true is if enable (hence if it is on)
void setEnabled (bool b)
 Enable/Disable this motorcontroller.
virtual void update ()=0
 virtual method implemented by actual motor controllers that apply the logic of controller
Worldworld ()
 return the world

Detailed Description

MotorController Class.

Motivation
Common interface among MotorController hierachy
Description
Warnings
The world hasn't a list of motors, so they must be destroyed by the owner or by the creator

Definition at line 112 of file motorcontrollers.h.


Constructor & Destructor Documentation

MotorController ( World world)

constructor

Parameters:
worldthe world in which we live

Definition at line 142 of file motorcontrollers.cpp.

~MotorController ( ) [virtual]

Destructor.

Definition at line 147 of file motorcontrollers.cpp.


Member Function Documentation

bool isEnabled ( ) [inline]

return true is if enable (hence if it is on)

Definition at line 123 of file motorcontrollers.h.

Referenced by PhyMarXbot::preUpdate(), and PhyiCub::preUpdate().

void setEnabled ( bool  b) [inline]
virtual void update ( ) [pure virtual]

virtual method implemented by actual motor controllers that apply the logic of controller

Implemented in MultiMotorController, and WheelMotorController.

World* world ( ) [inline]

return the world

Definition at line 131 of file motorcontrollers.h.

Referenced by MultiMotorController::update().


The documentation for this class was generated from the following files: