10 #ifndef QTCTRL_CTRL_SELECT 11 #define QTCTRL_CTRL_SELECT 16 #include <QRadioButton> 18 #include <QPushButton> 19 #include <QFileDialog> 21 #include <QMainWindow> 91 bool startROS()
const {
return select_ROS[0][1].isChecked(); }
97 {
return select_ROS[1][0].isChecked(); }
128 #endif // QTCTRL_CTRL_SELECT bool emptyROSworkspace() const
Indicates if starting ROS should use empty workspace.
Controller is the abstract class inherited by all the implemented controllers.
QString save_file_name
The save file name.
This class defines a sub-class of dialog windows which lower part is a horizontal button panel with o...
static const char * default_save_name
The name displayed when no save file is selected.
bool startROS() const
Indicates whether ROS should be started.
QPushButton save_file
The button displaying and changing save file.
QComboBox ctrl_select
The pop-up menu with the list of possible controllers.
int ctrl_id
The identification number of the selected controller.
const double time_step
The controller's time step.
void updateFileName()
Updates the button displaying the save file.
QRadioButton select_ROS[ROS_choices][ROS_choices]
The radio buttons to select ROS environment.
ControlWidget * newCtrlWidget()
Gives the selected controller's widget, or null pointer if the dialog was cancelled.
ControlWidget * ctrl_wdgt
The widget showing the controller's velocities.
const MotionModel & motion_model
The motion model of the controlled robot.
Qt based control widget for qt_ctrl.
This class defines a motion model, with the motion limits.
QGroupBox ROS_workspace
The ROS workspace group box (may be desabled).
void updateCtrl()
Updates the parameters of the current controller.
QPushButton ctrl_param
The button to set the controller's parameters.
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.
const QString & saveFileName() const
Gives the save file name.
This class defines an accept/cancel dialog to create a controller and its display widget which will b...
void updateROSline()
Enables or disables the ROS workspace group box.
static const int ROS_choices
The number of ROS environments and sub-environments.
Controller * newController()
Gives the selected controller, or null pointer if the dialog was cancelled.
Controller * controller
The controller created by this dialog.