This class defines an accept/cancel dialog to create a controller and its display widget which will be used by the qt_ctrl GUI.
More...
#include <selectCtrl.hpp>
|
static bool | getDoubleArray (QWidget *parent, const char *title, const char *msg, const int nb_lines, const int nb_col, const char *nameVal[], const bool isGreek[], double val[]) |
| Asks in a dialog for a set of doubles, and returns it. More...
|
|
static bool | getOrPtConfig (QWidget *parent, const char *title, const char *msg, iSeeML::rob::OrPtConfig &q) |
| Asks in a dialog for an oriented point. More...
|
|
static bool | getState (QWidget *parent, const char *title, const char *msg, State &state) |
| Asks in a dialog for a state. More...
|
|
void | insertWidget (QWidget &widget) |
| Inserts the given widget (containing the inputs) in the dialog, between message and buttons. More...
|
|
This class defines an accept/cancel dialog to create a controller and its display widget which will be used by the qt_ctrl GUI.
Both controller and display widget are allocated dynamically (they will be used after this dialog has been freed), they have to be deleted by the qt_ctrl GUI.
- Version
- 0.3.2
Definition at line 34 of file selectCtrl.hpp.
QtCtrlSelect::QtCtrlSelect |
( |
QWidget * |
parent, |
|
|
const double |
tm_stp, |
|
|
const MotionModel & |
motion |
|
) |
| |
The dialog is build with a given parent and a time step for the future controller.
- Parameters
-
parent | the parent widget of the dialog, |
tm_stp | the future controller's time step, |
motion | the controller motion model. |
Definition at line 34 of file selectCtrl.cpp.
bool QtCtrlSelect::emptyROSworkspace |
( |
| ) |
const |
|
inline |
Indicates if starting ROS should use empty workspace.
- Returns
- True if ROS should be start with empty workspace, false if it should be start with default one.
Definition at line 96 of file selectCtrl.hpp.
Gives the selected controller, or null pointer if the dialog was cancelled.
- Returns
- A pointer on the build controller.
Definition at line 102 of file selectCtrl.hpp.
Gives the selected controller's widget, or null pointer if the dialog was cancelled.
- Returns
- A pointer on the build controller's widget.
Definition at line 107 of file selectCtrl.hpp.
const QString& QtCtrlSelect::saveFileName |
( |
| ) |
const |
|
inline |
Gives the save file name.
- Returns
- The save file name.
Definition at line 110 of file selectCtrl.hpp.
bool QtCtrlSelect::startROS |
( |
| ) |
const |
|
inline |
Indicates whether ROS should be started.
- Returns
- True if ROS should be started, false if it already runs.
Definition at line 91 of file selectCtrl.hpp.
void QtCtrlSelect::updateCtrl |
( |
int |
new_id | ) |
|
|
privateslot |
Changes the selected controller.
- Parameters
-
new_id | the new controller number, in the selection list. |
Definition at line 115 of file selectCtrl.cpp.
void QtCtrlSelect::updateCtrl |
( |
| ) |
|
|
inlineprivateslot |
void QtCtrlSelect::updateFileName |
( |
| ) |
|
|
privateslot |
Updates the button displaying the save file.
Definition at line 218 of file selectCtrl.cpp.
void QtCtrlSelect::updateROSline |
( |
| ) |
|
|
inlineprivateslot |
Enables or disables the ROS workspace group box.
Definition at line 114 of file selectCtrl.hpp.
The controller created by this dialog.
Definition at line 71 of file selectCtrl.hpp.
int QtCtrlSelect::ctrl_id |
|
private |
The identification number of the selected controller.
Definition at line 50 of file selectCtrl.hpp.
QPushButton QtCtrlSelect::ctrl_param |
|
private |
The button to set the controller's parameters.
Definition at line 53 of file selectCtrl.hpp.
QComboBox QtCtrlSelect::ctrl_select |
|
private |
The pop-up menu with the list of possible controllers.
Definition at line 47 of file selectCtrl.hpp.
The widget showing the controller's velocities.
Definition at line 74 of file selectCtrl.hpp.
const char * QtCtrlSelect::default_save_name = "None" |
|
staticprivate |
The name displayed when no save file is selected.
Definition at line 56 of file selectCtrl.hpp.
The motion model of the controlled robot.
Definition at line 68 of file selectCtrl.hpp.
const int QtCtrlSelect::ROS_choices = 2 |
|
staticprivate |
The number of ROS environments and sub-environments.
Definition at line 38 of file selectCtrl.hpp.
QGroupBox QtCtrlSelect::ROS_workspace |
|
private |
The ROS workspace group box (may be desabled).
Definition at line 41 of file selectCtrl.hpp.
QPushButton QtCtrlSelect::save_file |
|
private |
The button displaying and changing save file.
Definition at line 62 of file selectCtrl.hpp.
QString QtCtrlSelect::save_file_name |
|
private |
The radio buttons to select ROS environment.
Definition at line 44 of file selectCtrl.hpp.
const double QtCtrlSelect::time_step |
|
private |
The documentation for this class was generated from the following files: