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

#include <controllers_widget.h>

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

Public Member Functions

void changeScreen (int index)
 
 ControllersWidget (QWidget *parent, const MoveItConfigDataPtr &config_data)
 
void focusGiven () override
 Received when this widget is chosen from the navigation menu. More...
 
- 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 (const std::vector< std::string > &groups)
 Called from Double List widget to highlight a group. More...
 
void previewSelectedJoints (const 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::ControllerConfig *this_controller)
 
void loadControllersTree ()
 
void loadGroupsScreen (moveit_setup_assistant::ControllerConfig *this_controller)
 
void loadJointsScreen (moveit_setup_assistant::ControllerConfig *this_controller)
 
void loadToControllersTree (const moveit_setup_assistant::ControllerConfig &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...
 
ControllerEditWidgetcontroller_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::DoubleListWidgetjoint_groups_widget_
 
moveit_setup_assistant::DoubleListWidgetjoints_widget_
 
QStackedWidget * stacked_widget_
 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...
 

Detailed Description

Definition at line 57 of file controllers_widget.h.

Constructor & Destructor Documentation

◆ ControllersWidget()

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

Definition at line 99 of file controllers_widget.cpp.

Member Function Documentation

◆ addController

void moveit_setup_assistant::ControllersWidget::addController ( )
privateslot

Create a new controller.

Definition at line 427 of file controllers_widget.cpp.

◆ addDefaultControllers

void moveit_setup_assistant::ControllersWidget::addDefaultControllers ( )
privateslot

Definition at line 440 of file controllers_widget.cpp.

◆ alterTree

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

Definition at line 859 of file controllers_widget.cpp.

◆ cancelEditing

void moveit_setup_assistant::ControllersWidget::cancelEditing ( )
privateslot

Definition at line 479 of file controllers_widget.cpp.

◆ changeScreen()

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

Definition at line 848 of file controllers_widget.cpp.

◆ createContentsWidget()

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

Builds the main screen list widget.

Definition at line 157 of file controllers_widget.cpp.

◆ deleteController

void moveit_setup_assistant::ControllersWidget::deleteController ( )
privateslot

Delete an existing controller.

Definition at line 380 of file controllers_widget.cpp.

◆ editController

void moveit_setup_assistant::ControllersWidget::editController ( )
privateslot

Edit an existing controller.

Definition at line 818 of file controllers_widget.cpp.

◆ editSelected

void moveit_setup_assistant::ControllersWidget::editSelected ( )
privateslot

Called whenever element is selected in the controllers tree view.

Definition at line 757 of file controllers_widget.cpp.

◆ focusGiven()

void moveit_setup_assistant::ControllersWidget::focusGiven ( )
overridevirtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 309 of file controllers_widget.cpp.

◆ itemSelectionChanged

void moveit_setup_assistant::ControllersWidget::itemSelectionChanged ( )
privateslot

Called sleceted item changed.

Definition at line 867 of file controllers_widget.cpp.

◆ loadControllerScreen()

void moveit_setup_assistant::ControllersWidget::loadControllerScreen ( moveit_setup_assistant::ControllerConfig this_controller)
private

Definition at line 450 of file controllers_widget.cpp.

◆ loadControllersTree()

void moveit_setup_assistant::ControllersWidget::loadControllersTree ( )
private

Definition at line 240 of file controllers_widget.cpp.

◆ loadGroupsScreen()

void moveit_setup_assistant::ControllersWidget::loadGroupsScreen ( moveit_setup_assistant::ControllerConfig this_controller)
private

Definition at line 351 of file controllers_widget.cpp.

◆ loadJointsScreen()

void moveit_setup_assistant::ControllersWidget::loadJointsScreen ( moveit_setup_assistant::ControllerConfig this_controller)
private

Definition at line 320 of file controllers_widget.cpp.

◆ loadToControllersTree()

void moveit_setup_assistant::ControllersWidget::loadToControllersTree ( const moveit_setup_assistant::ControllerConfig controller_it)
private

Definition at line 263 of file controllers_widget.cpp.

◆ previewSelected

void moveit_setup_assistant::ControllersWidget::previewSelected ( QTreeWidgetItem *  selected_item,
int  column 
)
privateslot

Called when an item is seleceted from the controllers tree.

Definition at line 551 of file controllers_widget.cpp.

◆ previewSelectedGroup

void moveit_setup_assistant::ControllersWidget::previewSelectedGroup ( const std::vector< std::string > &  groups)
privateslot

Called from Double List widget to highlight a group.

Definition at line 536 of file controllers_widget.cpp.

◆ previewSelectedJoints

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

Called from Double List widget to highlight a joint.

Definition at line 505 of file controllers_widget.cpp.

◆ saveControllerScreen

bool moveit_setup_assistant::ControllersWidget::saveControllerScreen ( )
privateslot

Definition at line 683 of file controllers_widget.cpp.

◆ saveControllerScreenEdit

void moveit_setup_assistant::ControllersWidget::saveControllerScreenEdit ( )
privateslot

Definition at line 670 of file controllers_widget.cpp.

◆ saveControllerScreenGroups

void moveit_setup_assistant::ControllersWidget::saveControllerScreenGroups ( )
privateslot

Definition at line 590 of file controllers_widget.cpp.

◆ saveControllerScreenJoints

void moveit_setup_assistant::ControllersWidget::saveControllerScreenJoints ( )
privateslot

Call when screen is done being edited.

Definition at line 571 of file controllers_widget.cpp.

◆ saveJointsGroupsScreen

void moveit_setup_assistant::ControllersWidget::saveJointsGroupsScreen ( )
privateslot

Definition at line 634 of file controllers_widget.cpp.

◆ saveJointsScreen

void moveit_setup_assistant::ControllersWidget::saveJointsScreen ( )
privateslot

Definition at line 609 of file controllers_widget.cpp.

◆ showMainScreen()

void moveit_setup_assistant::ControllersWidget::showMainScreen ( )
private

Definition at line 837 of file controllers_widget.cpp.

Member Data Documentation

◆ adding_new_controller_

bool moveit_setup_assistant::ControllersWidget::adding_new_controller_
private

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

Definition at line 142 of file controllers_widget.h.

◆ btn_add_

QPushButton* moveit_setup_assistant::ControllersWidget::btn_add_
private

Definition at line 132 of file controllers_widget.h.

◆ btn_delete_

QPushButton* moveit_setup_assistant::ControllersWidget::btn_delete_
private

Definition at line 131 of file controllers_widget.h.

◆ btn_edit_

QPushButton* moveit_setup_assistant::ControllersWidget::btn_edit_
private

Definition at line 133 of file controllers_widget.h.

◆ config_data_

moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::ControllersWidget::config_data_
private

Contains all the configuration data for the setup assistant.

Definition at line 145 of file controllers_widget.h.

◆ controller_edit_widget_

ControllerEditWidget* moveit_setup_assistant::ControllersWidget::controller_edit_widget_
private

Definition at line 129 of file controllers_widget.h.

◆ controllers_tree_

QTreeWidget* moveit_setup_assistant::ControllersWidget::controllers_tree_
private

Main table for holding controllers.

Definition at line 124 of file controllers_widget.h.

◆ controllers_tree_widget_

QWidget* moveit_setup_assistant::ControllersWidget::controllers_tree_widget_
private

Definition at line 125 of file controllers_widget.h.

◆ controls_layout_

QHBoxLayout* moveit_setup_assistant::ControllersWidget::controls_layout_
private

Definition at line 134 of file controllers_widget.h.

◆ current_edit_controller_

std::string moveit_setup_assistant::ControllersWidget::current_edit_controller_
private

Remember what controller we are editing when an edit screen is being shown.

Definition at line 139 of file controllers_widget.h.

◆ joint_groups_widget_

moveit_setup_assistant::DoubleListWidget* moveit_setup_assistant::ControllersWidget::joint_groups_widget_
private

Definition at line 136 of file controllers_widget.h.

◆ joints_widget_

moveit_setup_assistant::DoubleListWidget* moveit_setup_assistant::ControllersWidget::joints_widget_
private

Definition at line 135 of file controllers_widget.h.

◆ stacked_widget_

QStackedWidget* moveit_setup_assistant::ControllersWidget::stacked_widget_
private

For changing between table and different add/edit views.

Definition at line 128 of file controllers_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