#include <planning_groups_widget.h>
Public Member Functions | |
void | changeScreen (int index) |
virtual void | focusGiven () |
Recieved when this widget is chosen from the navigation menu. | |
PlanningGroupsWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data) | |
Private Slots | |
void | addGroup () |
Create a new, empty group. | |
void | alterTree (const QString &link) |
Called when user clicks link part of bottom left label. | |
void | cancelEditing () |
Call when edit screen is canceled. | |
void | deleteGroup () |
void | editSelected () |
Edit whatever element is selected in the tree view. | |
void | loadGroupsTree () |
Displays data in the link_pairs_ data structure into a QtTableWidget. | |
void | previewSelected () |
Highlight the group of whatever element is selected in the tree view. | |
void | previewSelectedJoints (std::vector< std::string > joints) |
Called from Double List widget to highlight a joint. | |
void | previewSelectedLink (std::vector< std::string > links) |
Called from Double List widget to highlight a link. | |
void | previewSelectedSubgroup (std::vector< std::string > groups) |
Called from Double List widget to highlight a subgroup. | |
void | saveChainScreen () |
void | saveGroupScreenChain () |
void | saveGroupScreenEdit () |
void | saveGroupScreenJoints () |
void | saveGroupScreenLinks () |
void | saveGroupScreenSubgroups () |
void | saveJointsScreen () |
Call when screen is done being edited. | |
void | saveLinksScreen () |
void | saveSubgroupsScreen () |
Private Member Functions | |
QWidget * | createContentsWidget () |
Builds the main screen list widget. | |
srdf::Model::Group * | findGroupByName (const std::string &name) |
void | loadChainScreen (srdf::Model::Group *this_group) |
void | loadGroupScreen (srdf::Model::Group *this_group) |
void | loadGroupsTreeRecursive (srdf::Model::Group &group_it, QTreeWidgetItem *parent) |
Recursively build the SRDF tree. | |
void | loadJointsScreen (srdf::Model::Group *this_group) |
void | loadLinksScreen (srdf::Model::Group *this_group) |
void | loadSubgroupsScreen (srdf::Model::Group *this_group) |
bool | saveGroupScreen () |
void | showMainScreen () |
Switch to current groups view. | |
Private Attributes | |
bool | adding_new_group_ |
Remember whethere we're editing a group or adding a new one. | |
QPushButton * | btn_delete_ |
QPushButton * | btn_edit_ |
Show and hide edit button. | |
KinematicChainWidget * | chain_widget_ |
moveit_setup_assistant::MoveItConfigDataPtr | config_data_ |
Contains all the configuration data for the setup assistant. | |
GroupType | current_edit_element_ |
Remember what group element we are editing when an edit screen is being shown. | |
std::string | current_edit_group_ |
Remember what group we are editing when an edit screen is being shown. | |
GroupEditWidget * | group_edit_widget_ |
QTreeWidget * | groups_tree_ |
Main table for holding groups. | |
QWidget * | groups_tree_widget_ |
DoubleListWidget * | joints_widget_ |
DoubleListWidget * | links_widget_ |
QStackedLayout * | stacked_layout_ |
For changing between table and different add/edit views. | |
DoubleListWidget * | subgroups_widget_ |
Definition at line 76 of file planning_groups_widget.h.
moveit_setup_assistant::PlanningGroupsWidget::PlanningGroupsWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
Definition at line 94 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::addGroup | ( | ) | [private, slot] |
Create a new, empty group.
Definition at line 830 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::alterTree | ( | const QString & | link | ) | [private, slot] |
Called when user clicks link part of bottom left label.
Definition at line 1345 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::cancelEditing | ( | ) | [private, slot] |
Call when edit screen is canceled.
Definition at line 1303 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::changeScreen | ( | int | index | ) |
Definition at line 1367 of file planning_groups_widget.cpp.
QWidget * moveit_setup_assistant::PlanningGroupsWidget::createContentsWidget | ( | ) | [private] |
Builds the main screen list widget.
Definition at line 178 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::deleteGroup | ( | ) | [private, slot] |
Definition at line 679 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::editSelected | ( | ) | [private, slot] |
Edit whatever element is selected in the tree view.
Definition at line 456 of file planning_groups_widget.cpp.
srdf::Model::Group* moveit_setup_assistant::PlanningGroupsWidget::findGroupByName | ( | const std::string & | name | ) | [private] |
void moveit_setup_assistant::PlanningGroupsWidget::focusGiven | ( | ) | [virtual] |
Recieved when this widget is chosen from the navigation menu.
Reimplemented from SetupScreenWidget.
Definition at line 1332 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadChainScreen | ( | srdf::Model::Group * | this_group | ) | [private] |
Definition at line 582 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadGroupScreen | ( | srdf::Model::Group * | this_group | ) | [private] |
Definition at line 645 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadGroupsTree | ( | ) | [private, slot] |
Displays data in the link_pairs_ data structure into a QtTableWidget.
Definition at line 249 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadGroupsTreeRecursive | ( | srdf::Model::Group & | group_it, |
QTreeWidgetItem * | parent | ||
) | [private] |
Recursively build the SRDF tree.
Definition at line 285 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadJointsScreen | ( | srdf::Model::Group * | this_group | ) | [private] |
Definition at line 518 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadLinksScreen | ( | srdf::Model::Group * | this_group | ) | [private] |
Definition at line 550 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::loadSubgroupsScreen | ( | srdf::Model::Group * | this_group | ) | [private] |
Definition at line 611 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::previewSelected | ( | ) | [private, slot] |
Highlight the group of whatever element is selected in the tree view.
Definition at line 435 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedJoints | ( | std::vector< std::string > | joints | ) | [private, slot] |
Called from Double List widget to highlight a joint.
Definition at line 1400 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedLink | ( | std::vector< std::string > | links | ) | [private, slot] |
Called from Double List widget to highlight a link.
Definition at line 1378 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedSubgroup | ( | std::vector< std::string > | groups | ) | [private, slot] |
Called from Double List widget to highlight a subgroup.
Definition at line 1432 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveChainScreen | ( | ) | [private, slot] |
Definition at line 900 of file planning_groups_widget.cpp.
bool moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreen | ( | ) | [private] |
Definition at line 1077 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenChain | ( | ) | [private, slot] |
Definition at line 1271 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenEdit | ( | ) | [private, slot] |
Definition at line 1226 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenJoints | ( | ) | [private, slot] |
Definition at line 1239 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenLinks | ( | ) | [private, slot] |
Definition at line 1255 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenSubgroups | ( | ) | [private, slot] |
Definition at line 1287 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveJointsScreen | ( | ) | [private, slot] |
Call when screen is done being edited.
Definition at line 845 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveLinksScreen | ( | ) | [private, slot] |
Definition at line 872 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::saveSubgroupsScreen | ( | ) | [private, slot] |
Definition at line 975 of file planning_groups_widget.cpp.
void moveit_setup_assistant::PlanningGroupsWidget::showMainScreen | ( | ) | [private] |
Switch to current groups view.
Definition at line 1356 of file planning_groups_widget.cpp.
Remember whethere we're editing a group or adding a new one.
Definition at line 180 of file planning_groups_widget.h.
QPushButton* moveit_setup_assistant::PlanningGroupsWidget::btn_delete_ [private] |
Definition at line 155 of file planning_groups_widget.h.
QPushButton* moveit_setup_assistant::PlanningGroupsWidget::btn_edit_ [private] |
Show and hide edit button.
Definition at line 153 of file planning_groups_widget.h.
Definition at line 163 of file planning_groups_widget.h.
moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::PlanningGroupsWidget::config_data_ [private] |
Contains all the configuration data for the setup assistant.
Definition at line 171 of file planning_groups_widget.h.
Remember what group element we are editing when an edit screen is being shown.
Definition at line 177 of file planning_groups_widget.h.
std::string moveit_setup_assistant::PlanningGroupsWidget::current_edit_group_ [private] |
Remember what group we are editing when an edit screen is being shown.
Definition at line 174 of file planning_groups_widget.h.
Definition at line 164 of file planning_groups_widget.h.
QTreeWidget* moveit_setup_assistant::PlanningGroupsWidget::groups_tree_ [private] |
Main table for holding groups.
Definition at line 147 of file planning_groups_widget.h.
QWidget* moveit_setup_assistant::PlanningGroupsWidget::groups_tree_widget_ [private] |
Definition at line 159 of file planning_groups_widget.h.
Definition at line 160 of file planning_groups_widget.h.
Definition at line 161 of file planning_groups_widget.h.
QStackedLayout* moveit_setup_assistant::PlanningGroupsWidget::stacked_layout_ [private] |
For changing between table and different add/edit views.
Definition at line 150 of file planning_groups_widget.h.
Definition at line 162 of file planning_groups_widget.h.