MotorController Class Reference
MotorController Class. More...

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 | |
World * | world () |
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:
-
world the 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] |
Enable/Disable this motorcontroller.
Definition at line 127 of file motorcontrollers.h.
Referenced by PhyiCub::enableHead(), PhyiCub::enableLeftArm(), PhyiCub::enableLeftLeg(), PhyiCub::enableRightArm(), PhyiCub::enableRightLeg(), and PhyiCub::enableTorso().
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:
- worldsim/include/motorcontrollers.h
- worldsim/src/motorcontrollers.cpp