MotorController Class. More...

Public Member Functions | |
| MotorController (World *world) | |
| constructor More... | |
| virtual | ~MotorController () |
| Destructor. More... | |
| bool | isEnabled () |
| return true is if enable (hence if it is on) More... | |
| void | setEnabled (bool b) |
| Enable/Disable this motorcontroller. More... | |
| virtual void | update ()=0 |
| virtual method implemented by actual motor controllers that apply the logic of controller More... | |
| World * | world () |
| return the world More... | |
Public Member Functions inherited from Ownable | |
| Ownable () | |
| Constructor. More... | |
| virtual | ~Ownable () |
| Destructor. More... | |
| const QList< Owned > & | owned () const |
| Returns the list of objects owned by this one. More... | |
| Ownable * | owner () const |
| Returns the owner of this object. More... | |
| void | setOwner (Ownable *owner, bool destroy=true) |
| Sets the owner of this object. More... | |
Additional Inherited Members | |
Public Types inherited from Ownable | |
| typedef QList< Owned > | OwnedList |
| The type for the list of owned objects. More... | |
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 90 of file motorcontrollers.h.
Constructor & Destructor Documentation
| MotorController | ( | World * | world | ) |
constructor
- Parameters
-
world the world in which we live
Definition at line 134 of file motorcontrollers.cpp.
References MotorController::world().
|
virtual |
Destructor.
Definition at line 139 of file motorcontrollers.cpp.
Member Function Documentation
|
inline |
return true is if enable (hence if it is on)
Definition at line 101 of file motorcontrollers.h.
Referenced by PhyMarXbot::preUpdate(), PhyKhepera::preUpdate(), and PhyEpuck::preUpdate().
|
inline |
Enable/Disable this motorcontroller.
Definition at line 105 of file motorcontrollers.h.
|
pure virtual |
virtual method implemented by actual motor controllers that apply the logic of controller
Implemented in MarXbotAttachmentDeviceMotorController, and WheelMotorController.
|
inline |
return the world
Definition at line 109 of file motorcontrollers.h.
Referenced by MotorController::MotorController().
The documentation for this class was generated from the following files:
- worldsim/include/motorcontrollers.h
- worldsim/src/motorcontrollers.cpp
Public Member Functions inherited from