This abstract class is inherited by all those containing a Qt widget intended to show the controller's behaviour (current and aimed velocities).
More...
#include <ctrlWdgt.hpp>
This abstract class is inherited by all those containing a Qt widget intended to show the controller's behaviour (current and aimed velocities).
- Since
- 0.3.0
Definition at line 24 of file ctrlWdgt.hpp.
The constructor is used by inheritors.
- Parameters
-
controller | The controller whose behaviour is shown, |
motion_model | its motion model (with its limits values). |
Definition at line 36 of file ctrlWdgt.hpp.
virtual ControlWidget::~ControlWidget |
( |
| ) |
|
|
inlinevirtual |
The destructor needs to be defined as virtual.
Definition at line 42 of file ctrlWdgt.hpp.
void ControlWidget::keyPressed |
( |
QKeyEvent * |
event | ) |
|
|
inline |
Handles Quit/eXit shortcuts.
- Parameters
-
event | The event associated to a key pression. |
The application can be stopped either by pressing 'q' (Quit) or 'x' (eXit).
See QKeyEvent.
Definition at line 69 of file ctrlWdgt.hpp.
void ControlWidget::keyReleased |
( |
QKeyEvent * |
| ) |
|
|
inline |
Key release can be handled by inheritors.
Definition at line 75 of file ctrlWdgt.hpp.
virtual void ControlWidget::updateCommands |
( |
const double & |
trans_vel, |
|
|
const double & |
rot_vel |
|
) |
| |
|
pure virtual |
Update the display of the ROS node.
- Parameters
-
trans_vel | the translation velocity sent to ROS, |
rot_vel | the rotation velocity sent to ROS. |
- Since
- 0.3.1
Implemented in ViewCtrlWdgt, and TeleopWidget.
virtual void ControlWidget::updateState |
( |
const State & |
state | ) |
|
|
pure virtual |
Update the display of the odometry.
- Parameters
-
state | The state of the robot. |
- Since
- 0.3.1
Implemented in ViewCtrlWdgt, and TeleopWidget.
virtual QWidget& ControlWidget::widget |
( |
| ) |
|
|
pure virtual |
The motion model and its limits values.
- Since
- 0.2.1
Definition at line 31 of file ctrlWdgt.hpp.
The documentation for this class was generated from the following file: