MotorController Class Referenceabstract

MotorController Class. More...

Inheritance diagram for MotorController:

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
 
- Public Member Functions inherited from Ownable
 Ownable ()
 Constructor.
 
virtual ~Ownable ()
 Destructor.
 
const QList< Owned > & owned () const
 Returns the list of objects owned by this one.
 
Ownableowner () const
 Returns the owner of this object.
 
void setOwner (Ownable *owner, bool destroy=true)
 Sets the owner of this object.
 

Additional Inherited Members

- Public Types inherited from Ownable
typedef QList< OwnedOwnedList
 The type for the list of owned objects.
 

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 111 of file motorcontrollers.h.

Constructor & Destructor Documentation

MotorController ( World world)

constructor

Parameters
worldthe world in which we live

Definition at line 147 of file motorcontrollers.cpp.

~MotorController ( )
virtual

Destructor.

Definition at line 152 of file motorcontrollers.cpp.

Member Function Documentation

bool isEnabled ( )
inline

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

Definition at line 122 of file motorcontrollers.h.

Referenced by PhyMarXbot::preUpdate(), PhyKhepera::preUpdate(), PhyEpuck::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 MarXbotAttachmentDeviceMotorController, WheelMotorController, and MultiMotorController.

World* world ( )
inline

return the world

Definition at line 130 of file motorcontrollers.h.

Referenced by MultiMotorController::update().


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