The Robot class is the abstract base class for robots, containing an implementation for setting a controller, id, and giving the interface for getting sensor values and setting the wheel speeds of the robot. More...
#include <robot.h>
Public Member Functions | |
virtual void | setSpeed (QVector< float > wheelSpeeds)=0 |
virtual QVector< float > | sensors () const =0 |
unsigned | id () const |
Controller * | controller () |
Protected Member Functions | |
void | setId (unsigned id) |
void | setController (Controller *controller) |
Private Attributes | |
unsigned | _id |
Controller * | _controller |
The Robot class is the abstract base class for robots, containing an implementation for setting a controller, id, and giving the interface for getting sensor values and setting the wheel speeds of the robot.
|
inline |
References _controller.
Referenced by ControllerServer::incomingConnection(), and setController().
|
inline |
References _id.
Referenced by RobotRepository::addRobot(), MainWindow::selectedItemChanged(), and setId().
|
pure virtual |
Implemented in Chirp.
|
inlineprotected |
References _controller, and controller().
Referenced by Chirp::Chirp().
|
inlineprotected |
Referenced by Chirp::Chirp().
|
pure virtual |
wheelSpeeds | list of wheel speeds for the robot. |
Implemented in Chirp.
|
private |
Referenced by controller(), and setController().