This class is the Qt main window of qt_ctrl
package.
More...
#include <window.hpp>
This class is the Qt main window of qt_ctrl
package.
It contains (from left to right and top to bottom ) a control widget (connected to a controller), a data widget displaying odometry and commands' values, and a Qt list view showing the logs of the console outputs sent to ROS by the ROS node.
- Since
- 0.2.0
Definition at line 41 of file window.hpp.
QtCtrlGUI::QtCtrlGUI |
( |
const int |
argc, |
|
|
char ** |
argv, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
The constructor requires main()
's arguments (they can be forwarded by the ROS node to ROS).
- Parameters
-
argc | the arguments' count, |
argv | the arguments' value, |
parent | the main widget parent, if any (optional). |
- See also
- ROSnode::ROSnode().
Definition at line 33 of file window.cpp.
QtCtrlGUI::~QtCtrlGUI |
( |
| ) |
|
|
inline |
Freeing the allocated pointer.
Definition at line 135 of file window.hpp.
void QtCtrlGUI::actionAbout |
( |
| ) |
|
|
privateslot |
Method activated by the "About" menu item (not yet used).
Definition at line 153 of file window.cpp.
void QtCtrlGUI::buttonStartStop |
( |
| ) |
|
|
privateslot |
Method activated by the "Start/Stop" button.
- Since
- 0.2.1
Definition at line 167 of file window.cpp.
void QtCtrlGUI::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
inlineprotectedslot |
void QtCtrlGUI::connectCtrl |
( |
| ) |
|
|
inlineprivate |
Connects the controller signals to this class' methods.
This has to be donne each time the controller is changed.
Definition at line 110 of file window.hpp.
void QtCtrlGUI::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
inlineprotectedslot |
void QtCtrlGUI::keyReleaseEvent |
( |
QKeyEvent * |
event | ) |
|
|
inlineprotectedslot |
The motion model of the controlled robot.
- Since
- 0.2.2
Definition at line 139 of file window.hpp.
void QtCtrlGUI::newTrajectory |
( |
const std::list< State * > & |
trajectory | ) |
|
|
inline |
void QtCtrlGUI::readSettings |
( |
| ) |
|
|
private |
Load up Qt program settings at startup.
Definition at line 99 of file window.cpp.
void QtCtrlGUI::threadError |
( |
const int |
error, |
|
|
const QString & |
program |
|
) |
| |
|
privateslot |
Signals which error occured when starting ROS server.
- Parameters
-
error | the error which occured. |
program | the name of the script started. |
- Since
- 0.3.3
Definition at line 141 of file window.cpp.
void QtCtrlGUI::updateCommands |
( |
const double & |
trans_vel, |
|
|
const double & |
rot_vel |
|
) |
| |
|
inlineprivateslot |
Update the display of the controller's commands.
- Parameters
-
trans_vel | the translation velocity sent to ROS, |
rot_vel | the rotation velocity sent to ROS. |
- Since
- 0.3.1
Definition at line 213 of file window.hpp.
void QtCtrlGUI::updateLogging |
( |
| ) |
|
|
inlineprivateslot |
Method activated when this GUI's log view is updated.
Definition at line 197 of file window.hpp.
void QtCtrlGUI::updateState |
( |
const State & |
state | ) |
|
|
inlineprivateslot |
Update the display of the state.
- Parameters
-
state | The state of the robot. |
- Since
- 0.3.1
Definition at line 201 of file window.hpp.
void QtCtrlGUI::updateTrajectory |
( |
| ) |
|
|
inlineprivateslot |
Update the display of the .
- Since
- 0.3.2
Definition at line 205 of file window.hpp.
void QtCtrlGUI::writeSettings |
( |
| ) |
|
|
private |
Save Qt program settings when closing.
Definition at line 124 of file window.cpp.
QAction QtCtrlGUI::about_action |
|
private |
QAction QtCtrlGUI::about_Qt_action |
|
private |
QMenu QtCtrlGUI::app_menu |
|
private |
The actions' menu of this GUI.
- Since
- 0.2.1
Definition at line 53 of file window.hpp.
The ROS node at the center of this GUI.
- Since
- 0.2.2
Definition at line 90 of file window.hpp.
The widget showing the controller's velocities can also change.
- Since
- 0.2.1
Definition at line 94 of file window.hpp.
QMenu QtCtrlGUI::help_menu |
|
private |
QListView QtCtrlGUI::logs |
|
private |
QMenuBar QtCtrlGUI::menu_bar |
|
private |
The motion model of the controlled robot.
- Since
- 0.2.2
Definition at line 83 of file window.hpp.
The instance used to start a ROS server, if needed.
Definition at line 75 of file window.hpp.
QAction QtCtrlGUI::start_stop_action |
|
private |
const double QtCtrlGUI::time_step = .2 |
|
staticprivate |
The default time step.
- Since
- 0.3.1
Definition at line 45 of file window.hpp.
QToolBar QtCtrlGUI::tool_bar |
|
private |
The tool bar of this GUI.
Even though it is not used by this class, it is by Qt and has to exist as long as the window does.
- Since
- 0.2.1
Definition at line 64 of file window.hpp.
The documentation for this class was generated from the following files: