#include <ros_controllers_widget.h>
Public Member Functions | |
void | changeScreen (int index) |
virtual void | focusGiven () |
Received when this widget is chosen from the navigation menu. More... | |
ROSControllersWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data) | |
Public Member Functions inherited from SetupScreenWidget | |
virtual bool | focusLost () |
function called when widget lost focus, allows to accept/reject changes and to reject switching (returning false) More... | |
SetupScreenWidget (QWidget *parent) | |
Private Slots | |
void | addController () |
Create a new controller. More... | |
void | addDefaultControllers () |
void | alterTree (const QString &link) |
void | cancelEditing () |
void | deleteController () |
Delete an existing controller. More... | |
void | editController () |
Edit an existing controller. More... | |
void | editSelected () |
Called whenever element is selected in the controllers tree view. More... | |
void | itemSelectionChanged () |
Called sleceted item changed. More... | |
void | previewSelected (QTreeWidgetItem *selected_item, int column) |
Called when an item is seleceted from the controllers tree. More... | |
void | previewSelectedGroup (std::vector< std::string > groups) |
Called from Double List widget to highlight a group. More... | |
void | previewSelectedJoints (std::vector< std::string > joints) |
Called from Double List widget to highlight a joint. More... | |
bool | saveControllerScreen () |
void | saveControllerScreenEdit () |
void | saveControllerScreenGroups () |
void | saveControllerScreenJoints () |
Call when screen is done being edited. More... | |
void | saveJointsGroupsScreen () |
void | saveJointsScreen () |
Private Member Functions | |
QWidget * | createContentsWidget () |
Builds the main screen list widget. More... | |
void | loadControllerScreen (moveit_setup_assistant::ROSControlConfig *this_controller) |
void | loadControllersTree () |
void | loadGroupsScreen (moveit_setup_assistant::ROSControlConfig *this_controller) |
void | loadJointsScreen (moveit_setup_assistant::ROSControlConfig *this_controller) |
void | loadToControllersTree (const moveit_setup_assistant::ROSControlConfig &controller_it) |
void | showMainScreen () |
Private Attributes | |
bool | adding_new_controller_ |
Remember whethere we're editing a controller or adding a new one. More... | |
QPushButton * | btn_add_ |
QPushButton * | btn_delete_ |
QPushButton * | btn_edit_ |
moveit_setup_assistant::MoveItConfigDataPtr | config_data_ |
Contains all the configuration data for the setup assistant. More... | |
ControllerEditWidget * | controller_edit_widget_ |
QTreeWidget * | controllers_tree_ |
Main table for holding controllers. More... | |
QWidget * | controllers_tree_widget_ |
QHBoxLayout * | controls_layout_ |
std::string | current_edit_controller_ |
Remember what controller we are editing when an edit screen is being shown. More... | |
moveit_setup_assistant::DoubleListWidget * | joint_groups_widget_ |
moveit_setup_assistant::DoubleListWidget * | joints_widget_ |
QStackedLayout * | stacked_layout_ |
For changing between table and different add/edit views. More... | |
Additional Inherited Members | |
Signals inherited from SetupScreenWidget | |
void | highlightGroup (const std::string &name) |
Event for telling rviz to highlight a group of the robot. More... | |
void | highlightLink (const std::string &name, const QColor &) |
Event for telling rviz to highlight a link of the robot. More... | |
void | isModal (bool isModal) |
Event for when the current screen is in modal view. Essential disabled the left navigation. More... | |
void | unhighlightAll () |
Event for telling rviz to unhighlight all links of the robot. More... | |
Definition at line 61 of file ros_controllers_widget.h.
moveit_ros_control::ROSControllersWidget::ROSControllersWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
Definition at line 54 of file ros_controllers_widget.cpp.
|
privateslot |
Create a new controller.
Definition at line 394 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 407 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 829 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 447 of file ros_controllers_widget.cpp.
void moveit_ros_control::ROSControllersWidget::changeScreen | ( | int | index | ) |
Definition at line 818 of file ros_controllers_widget.cpp.
|
private |
Builds the main screen list widget.
Definition at line 118 of file ros_controllers_widget.cpp.
|
privateslot |
Delete an existing controller.
Definition at line 347 of file ros_controllers_widget.cpp.
|
privateslot |
Edit an existing controller.
Definition at line 788 of file ros_controllers_widget.cpp.
|
privateslot |
Called whenever element is selected in the controllers tree view.
Definition at line 727 of file ros_controllers_widget.cpp.
|
virtual |
Received when this widget is chosen from the navigation menu.
Reimplemented from SetupScreenWidget.
Definition at line 275 of file ros_controllers_widget.cpp.
|
privateslot |
Called sleceted item changed.
Definition at line 837 of file ros_controllers_widget.cpp.
|
private |
Definition at line 417 of file ros_controllers_widget.cpp.
|
private |
Definition at line 203 of file ros_controllers_widget.cpp.
|
private |
Definition at line 317 of file ros_controllers_widget.cpp.
|
private |
Definition at line 286 of file ros_controllers_widget.cpp.
|
private |
Definition at line 228 of file ros_controllers_widget.cpp.
|
privateslot |
Called when an item is seleceted from the controllers tree.
Definition at line 519 of file ros_controllers_widget.cpp.
|
privateslot |
Called from Double List widget to highlight a group.
Definition at line 504 of file ros_controllers_widget.cpp.
|
privateslot |
Called from Double List widget to highlight a joint.
Definition at line 473 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 651 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 638 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 558 of file ros_controllers_widget.cpp.
|
privateslot |
Call when screen is done being edited.
Definition at line 539 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 602 of file ros_controllers_widget.cpp.
|
privateslot |
Definition at line 577 of file ros_controllers_widget.cpp.
|
private |
Definition at line 807 of file ros_controllers_widget.cpp.
|
private |
Remember whethere we're editing a controller or adding a new one.
Definition at line 146 of file ros_controllers_widget.h.
|
private |
Definition at line 136 of file ros_controllers_widget.h.
|
private |
Definition at line 135 of file ros_controllers_widget.h.
|
private |
Definition at line 137 of file ros_controllers_widget.h.
|
private |
Contains all the configuration data for the setup assistant.
Definition at line 149 of file ros_controllers_widget.h.
|
private |
Definition at line 133 of file ros_controllers_widget.h.
|
private |
Main table for holding controllers.
Definition at line 128 of file ros_controllers_widget.h.
|
private |
Definition at line 129 of file ros_controllers_widget.h.
|
private |
Definition at line 138 of file ros_controllers_widget.h.
|
private |
Remember what controller we are editing when an edit screen is being shown.
Definition at line 143 of file ros_controllers_widget.h.
|
private |
Definition at line 140 of file ros_controllers_widget.h.
|
private |
Definition at line 139 of file ros_controllers_widget.h.
|
private |
For changing between table and different add/edit views.
Definition at line 132 of file ros_controllers_widget.h.