Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
moveit_setup_assistant::PlanningGroupsWidget Class Reference

#include <planning_groups_widget.h>

Inheritance diagram for moveit_setup_assistant::PlanningGroupsWidget:
Inheritance graph
[legend]

Public Member Functions

void changeScreen (int index)
 
void focusGiven () override
 Received when this widget is chosen from the navigation menu. More...
 
 PlanningGroupsWidget (QWidget *parent, const 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 addGroup ()
 Create a new, empty group. More...
 
void alterTree (const QString &link)
 Called when user clicks link part of bottom left label. More...
 
void cancelEditing ()
 Call when edit screen is canceled. More...
 
void deleteGroup ()
 
void editSelected ()
 Edit whatever element is selected in the tree view. More...
 
void loadGroupsTree ()
 Displays data in the link_pairs_ data structure into a QtTableWidget. More...
 
void previewSelected ()
 Highlight the group of whatever element is selected in the tree view. More...
 
void previewSelectedJoints (const std::vector< std::string > &joints)
 Called from Double List widget to highlight a joint. More...
 
void previewSelectedLink (const std::vector< std::string > &links)
 Called from Double List widget to highlight a link. More...
 
void previewSelectedSubgroup (const std::vector< std::string > &groups)
 Called from Double List widget to highlight a subgroup. More...
 
void saveChainScreen ()
 
void saveGroupScreenChain ()
 
void saveGroupScreenEdit ()
 
void saveGroupScreenJoints ()
 
void saveGroupScreenLinks ()
 
void saveGroupScreenSubgroups ()
 
void saveJointsScreen ()
 Call when screen is done being edited. More...
 
void saveLinksScreen ()
 
void saveSubgroupsScreen ()
 

Private Member Functions

QWidget * createContentsWidget ()
 Builds the main screen list widget. More...
 
srdf::Model::GroupfindGroupByName (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. More...
 
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. More...
 

Private Attributes

bool adding_new_group_
 Remember whethere we're editing a group or adding a new one. More...
 
QPushButton * btn_delete_
 
QPushButton * btn_edit_
 Show and hide edit button. More...
 
KinematicChainWidgetchain_widget_
 
moveit_setup_assistant::MoveItConfigDataPtr config_data_
 Contains all the configuration data for the setup assistant. More...
 
std::string current_edit_group_
 Remember what group we are editing when an edit screen is being shown. More...
 
GroupEditWidgetgroup_edit_widget_
 
QTreeWidget * groups_tree_
 Main table for holding groups. More...
 
QWidget * groups_tree_widget_
 
DoubleListWidgetjoints_widget_
 
DoubleListWidgetlinks_widget_
 
int return_screen_
 Remember to which editing screen we should return on Cancel. More...
 
QStackedWidget * stacked_widget_
 For changing between table and different add/edit views. More...
 
DoubleListWidgetsubgroups_widget_
 

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...
 

Detailed Description

Definition at line 76 of file planning_groups_widget.h.

Constructor & Destructor Documentation

◆ PlanningGroupsWidget()

moveit_setup_assistant::PlanningGroupsWidget::PlanningGroupsWidget ( QWidget *  parent,
const MoveItConfigDataPtr &  config_data 
)

Definition at line 131 of file planning_groups_widget.cpp.

Member Function Documentation

◆ addGroup

void moveit_setup_assistant::PlanningGroupsWidget::addGroup ( )
privateslot

Create a new, empty group.

Definition at line 841 of file planning_groups_widget.cpp.

◆ alterTree

void moveit_setup_assistant::PlanningGroupsWidget::alterTree ( const QString &  link)
privateslot

Called when user clicks link part of bottom left label.

Definition at line 1408 of file planning_groups_widget.cpp.

◆ cancelEditing

void moveit_setup_assistant::PlanningGroupsWidget::cancelEditing ( )
privateslot

Call when edit screen is canceled.

Definition at line 1361 of file planning_groups_widget.cpp.

◆ changeScreen()

void moveit_setup_assistant::PlanningGroupsWidget::changeScreen ( int  index)

Definition at line 1430 of file planning_groups_widget.cpp.

◆ createContentsWidget()

QWidget * moveit_setup_assistant::PlanningGroupsWidget::createContentsWidget ( )
private

Builds the main screen list widget.

Definition at line 215 of file planning_groups_widget.cpp.

◆ deleteGroup

void moveit_setup_assistant::PlanningGroupsWidget::deleteGroup ( )
privateslot

Definition at line 685 of file planning_groups_widget.cpp.

◆ editSelected

void moveit_setup_assistant::PlanningGroupsWidget::editSelected ( )
privateslot

Edit whatever element is selected in the tree view.

Definition at line 488 of file planning_groups_widget.cpp.

◆ findGroupByName()

srdf::Model::Group* moveit_setup_assistant::PlanningGroupsWidget::findGroupByName ( const std::string &  name)
private

◆ focusGiven()

void moveit_setup_assistant::PlanningGroupsWidget::focusGiven ( )
overridevirtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 1396 of file planning_groups_widget.cpp.

◆ loadChainScreen()

void moveit_setup_assistant::PlanningGroupsWidget::loadChainScreen ( srdf::Model::Group this_group)
private

Definition at line 591 of file planning_groups_widget.cpp.

◆ loadGroupScreen()

void moveit_setup_assistant::PlanningGroupsWidget::loadGroupScreen ( srdf::Model::Group this_group)
private

Definition at line 655 of file planning_groups_widget.cpp.

◆ loadGroupsTree

void moveit_setup_assistant::PlanningGroupsWidget::loadGroupsTree ( )
privateslot

Displays data in the link_pairs_ data structure into a QtTableWidget.

Definition at line 281 of file planning_groups_widget.cpp.

◆ loadGroupsTreeRecursive()

void moveit_setup_assistant::PlanningGroupsWidget::loadGroupsTreeRecursive ( srdf::Model::Group group_it,
QTreeWidgetItem *  parent 
)
private

Recursively build the SRDF tree.

Definition at line 316 of file planning_groups_widget.cpp.

◆ loadJointsScreen()

void moveit_setup_assistant::PlanningGroupsWidget::loadJointsScreen ( srdf::Model::Group this_group)
private

Definition at line 529 of file planning_groups_widget.cpp.

◆ loadLinksScreen()

void moveit_setup_assistant::PlanningGroupsWidget::loadLinksScreen ( srdf::Model::Group this_group)
private

Definition at line 560 of file planning_groups_widget.cpp.

◆ loadSubgroupsScreen()

void moveit_setup_assistant::PlanningGroupsWidget::loadSubgroupsScreen ( srdf::Model::Group this_group)
private

Definition at line 623 of file planning_groups_widget.cpp.

◆ previewSelected

void moveit_setup_assistant::PlanningGroupsWidget::previewSelected ( )
privateslot

Highlight the group of whatever element is selected in the tree view.

Definition at line 467 of file planning_groups_widget.cpp.

◆ previewSelectedJoints

void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedJoints ( const std::vector< std::string > &  joints)
privateslot

Called from Double List widget to highlight a joint.

Definition at line 1461 of file planning_groups_widget.cpp.

◆ previewSelectedLink

void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedLink ( const std::vector< std::string > &  links)
privateslot

Called from Double List widget to highlight a link.

Definition at line 1441 of file planning_groups_widget.cpp.

◆ previewSelectedSubgroup

void moveit_setup_assistant::PlanningGroupsWidget::previewSelectedSubgroup ( const std::vector< std::string > &  groups)
privateslot

Called from Double List widget to highlight a subgroup.

Definition at line 1492 of file planning_groups_widget.cpp.

◆ saveChainScreen

void moveit_setup_assistant::PlanningGroupsWidget::saveChainScreen ( )
privateslot

Definition at line 912 of file planning_groups_widget.cpp.

◆ saveGroupScreen()

bool moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreen ( )
private

Definition at line 1083 of file planning_groups_widget.cpp.

◆ saveGroupScreenChain

void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenChain ( )
privateslot

Definition at line 1327 of file planning_groups_widget.cpp.

◆ saveGroupScreenEdit

void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenEdit ( )
privateslot

Definition at line 1280 of file planning_groups_widget.cpp.

◆ saveGroupScreenJoints

void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenJoints ( )
privateslot

Definition at line 1293 of file planning_groups_widget.cpp.

◆ saveGroupScreenLinks

void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenLinks ( )
privateslot

Definition at line 1310 of file planning_groups_widget.cpp.

◆ saveGroupScreenSubgroups

void moveit_setup_assistant::PlanningGroupsWidget::saveGroupScreenSubgroups ( )
privateslot

Definition at line 1344 of file planning_groups_widget.cpp.

◆ saveJointsScreen

void moveit_setup_assistant::PlanningGroupsWidget::saveJointsScreen ( )
privateslot

Call when screen is done being edited.

Definition at line 855 of file planning_groups_widget.cpp.

◆ saveLinksScreen

void moveit_setup_assistant::PlanningGroupsWidget::saveLinksScreen ( )
privateslot

Definition at line 883 of file planning_groups_widget.cpp.

◆ saveSubgroupsScreen

void moveit_setup_assistant::PlanningGroupsWidget::saveSubgroupsScreen ( )
privateslot

Definition at line 988 of file planning_groups_widget.cpp.

◆ showMainScreen()

void moveit_setup_assistant::PlanningGroupsWidget::showMainScreen ( )
private

Switch to current groups view.

Definition at line 1419 of file planning_groups_widget.cpp.

Member Data Documentation

◆ adding_new_group_

bool moveit_setup_assistant::PlanningGroupsWidget::adding_new_group_
private

Remember whethere we're editing a group or adding a new one.

Definition at line 179 of file planning_groups_widget.h.

◆ btn_delete_

QPushButton* moveit_setup_assistant::PlanningGroupsWidget::btn_delete_
private

Definition at line 154 of file planning_groups_widget.h.

◆ btn_edit_

QPushButton* moveit_setup_assistant::PlanningGroupsWidget::btn_edit_
private

Show and hide edit button.

Definition at line 152 of file planning_groups_widget.h.

◆ chain_widget_

KinematicChainWidget* moveit_setup_assistant::PlanningGroupsWidget::chain_widget_
private

Definition at line 162 of file planning_groups_widget.h.

◆ config_data_

moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::PlanningGroupsWidget::config_data_
private

Contains all the configuration data for the setup assistant.

Definition at line 170 of file planning_groups_widget.h.

◆ current_edit_group_

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 173 of file planning_groups_widget.h.

◆ group_edit_widget_

GroupEditWidget* moveit_setup_assistant::PlanningGroupsWidget::group_edit_widget_
private

Definition at line 163 of file planning_groups_widget.h.

◆ groups_tree_

QTreeWidget* moveit_setup_assistant::PlanningGroupsWidget::groups_tree_
private

Main table for holding groups.

Definition at line 146 of file planning_groups_widget.h.

◆ groups_tree_widget_

QWidget* moveit_setup_assistant::PlanningGroupsWidget::groups_tree_widget_
private

Definition at line 158 of file planning_groups_widget.h.

◆ joints_widget_

DoubleListWidget* moveit_setup_assistant::PlanningGroupsWidget::joints_widget_
private

Definition at line 159 of file planning_groups_widget.h.

◆ links_widget_

DoubleListWidget* moveit_setup_assistant::PlanningGroupsWidget::links_widget_
private

Definition at line 160 of file planning_groups_widget.h.

◆ return_screen_

int moveit_setup_assistant::PlanningGroupsWidget::return_screen_
private

Remember to which editing screen we should return on Cancel.

Definition at line 176 of file planning_groups_widget.h.

◆ stacked_widget_

QStackedWidget* moveit_setup_assistant::PlanningGroupsWidget::stacked_widget_
private

For changing between table and different add/edit views.

Definition at line 149 of file planning_groups_widget.h.

◆ subgroups_widget_

DoubleListWidget* moveit_setup_assistant::PlanningGroupsWidget::subgroups_widget_
private

Definition at line 161 of file planning_groups_widget.h.


The documentation for this class was generated from the following files:


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sat May 3 2025 02:28:05