Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
moveit_ros_control::ROSControllersWidget Class Reference

#include <ros_controllers_widget.h>

Inheritance diagram for moveit_ros_control::ROSControllersWidget:
Inheritance graph
[legend]

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

Detailed Description

Definition at line 61 of file ros_controllers_widget.h.

Constructor & Destructor Documentation

moveit_ros_control::ROSControllersWidget::ROSControllersWidget ( QWidget *  parent,
moveit_setup_assistant::MoveItConfigDataPtr  config_data 
)

Definition at line 54 of file ros_controllers_widget.cpp.

Member Function Documentation

void moveit_ros_control::ROSControllersWidget::addController ( )
privateslot

Create a new controller.

Definition at line 394 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::addDefaultControllers ( )
privateslot

Definition at line 407 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::alterTree ( const QString &  link)
privateslot

Definition at line 829 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::cancelEditing ( )
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.

QWidget * moveit_ros_control::ROSControllersWidget::createContentsWidget ( )
private

Builds the main screen list widget.

Definition at line 118 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::deleteController ( )
privateslot

Delete an existing controller.

Definition at line 347 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::editController ( )
privateslot

Edit an existing controller.

Definition at line 788 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::editSelected ( )
privateslot

Called whenever element is selected in the controllers tree view.

Definition at line 727 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::focusGiven ( )
virtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 275 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::itemSelectionChanged ( )
privateslot

Called sleceted item changed.

Definition at line 837 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::loadControllerScreen ( moveit_setup_assistant::ROSControlConfig this_controller)
private

Definition at line 417 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::loadControllersTree ( )
private

Definition at line 203 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::loadGroupsScreen ( moveit_setup_assistant::ROSControlConfig this_controller)
private

Definition at line 317 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::loadJointsScreen ( moveit_setup_assistant::ROSControlConfig this_controller)
private

Definition at line 286 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::loadToControllersTree ( const moveit_setup_assistant::ROSControlConfig controller_it)
private

Definition at line 228 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::previewSelected ( QTreeWidgetItem *  selected_item,
int  column 
)
privateslot

Called when an item is seleceted from the controllers tree.

Definition at line 519 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::previewSelectedGroup ( std::vector< std::string >  groups)
privateslot

Called from Double List widget to highlight a group.

Definition at line 504 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::previewSelectedJoints ( std::vector< std::string >  joints)
privateslot

Called from Double List widget to highlight a joint.

Definition at line 473 of file ros_controllers_widget.cpp.

bool moveit_ros_control::ROSControllersWidget::saveControllerScreen ( )
privateslot

Definition at line 651 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::saveControllerScreenEdit ( )
privateslot

Definition at line 638 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::saveControllerScreenGroups ( )
privateslot

Definition at line 558 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::saveControllerScreenJoints ( )
privateslot

Call when screen is done being edited.

Definition at line 539 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::saveJointsGroupsScreen ( )
privateslot

Definition at line 602 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::saveJointsScreen ( )
privateslot

Definition at line 577 of file ros_controllers_widget.cpp.

void moveit_ros_control::ROSControllersWidget::showMainScreen ( )
private

Definition at line 807 of file ros_controllers_widget.cpp.

Member Data Documentation

bool moveit_ros_control::ROSControllersWidget::adding_new_controller_
private

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

Definition at line 146 of file ros_controllers_widget.h.

QPushButton* moveit_ros_control::ROSControllersWidget::btn_add_
private

Definition at line 136 of file ros_controllers_widget.h.

QPushButton* moveit_ros_control::ROSControllersWidget::btn_delete_
private

Definition at line 135 of file ros_controllers_widget.h.

QPushButton* moveit_ros_control::ROSControllersWidget::btn_edit_
private

Definition at line 137 of file ros_controllers_widget.h.

moveit_setup_assistant::MoveItConfigDataPtr moveit_ros_control::ROSControllersWidget::config_data_
private

Contains all the configuration data for the setup assistant.

Definition at line 149 of file ros_controllers_widget.h.

ControllerEditWidget* moveit_ros_control::ROSControllersWidget::controller_edit_widget_
private

Definition at line 133 of file ros_controllers_widget.h.

QTreeWidget* moveit_ros_control::ROSControllersWidget::controllers_tree_
private

Main table for holding controllers.

Definition at line 128 of file ros_controllers_widget.h.

QWidget* moveit_ros_control::ROSControllersWidget::controllers_tree_widget_
private

Definition at line 129 of file ros_controllers_widget.h.

QHBoxLayout* moveit_ros_control::ROSControllersWidget::controls_layout_
private

Definition at line 138 of file ros_controllers_widget.h.

std::string moveit_ros_control::ROSControllersWidget::current_edit_controller_
private

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

Definition at line 143 of file ros_controllers_widget.h.

moveit_setup_assistant::DoubleListWidget* moveit_ros_control::ROSControllersWidget::joint_groups_widget_
private

Definition at line 140 of file ros_controllers_widget.h.

moveit_setup_assistant::DoubleListWidget* moveit_ros_control::ROSControllersWidget::joints_widget_
private

Definition at line 139 of file ros_controllers_widget.h.

QStackedLayout* moveit_ros_control::ROSControllersWidget::stacked_layout_
private

For changing between table and different add/edit views.

Definition at line 132 of file ros_controllers_widget.h.


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


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sun Oct 18 2020 13:19:28