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

#include <virtual_joints_widget.h>

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

Signals

void referenceFrameChanged ()
 Event sent when this widget updated the root joint, which changes the frame of reference for the model. More...
 
- 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...
 

Public Member Functions

virtual void focusGiven ()
 Received when this widget is chosen from the navigation menu. More...
 
 VirtualJointsWidget (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)
 

Public Attributes

QPushButton * btn_cancel_
 
QPushButton * btn_delete_
 
QPushButton * btn_edit_
 
QPushButton * btn_save_
 
QComboBox * child_link_field_
 
QTableWidget * data_table_
 
QComboBox * joint_type_field_
 
QLineEdit * parent_name_field_
 
QStackedLayout * stacked_layout_
 
QWidget * vjoint_edit_widget_
 
QWidget * vjoint_list_widget_
 
QLineEdit * vjoint_name_field_
 

Private Slots

void cancelEditing ()
 Cancel changes. More...
 
void deleteSelected ()
 Delete currently editing ite. More...
 
void doneEditing ()
 Save editing changes. More...
 
void editDoubleClicked (int row, int column)
 Edit the double clicked element. More...
 
void editSelected ()
 Edit whatever element is selected. More...
 
void previewClicked (int row, int column)
 Preview whatever element is selected. More...
 
void showNewScreen ()
 Show edit screen. More...
 

Private Member Functions

QWidget * createContentsWidget ()
 
QWidget * createEditWidget ()
 
void edit (const std::string &name)
 
srdf::Model::VirtualJointfindVJointByName (const std::string &name)
 
void loadChildLinksComboBox ()
 
void loadDataTable ()
 
void loadJointTypesComboBox ()
 

Private Attributes

moveit_setup_assistant::MoveItConfigDataPtr config_data_
 Contains all the configuration data for the setup assistant. More...
 
std::string current_edit_vjoint_
 Orignal name of vjoint currently being edited. This is used to find the element in the vector. More...
 

Detailed Description

Definition at line 61 of file virtual_joints_widget.h.

Constructor & Destructor Documentation

moveit_setup_assistant::VirtualJointsWidget::VirtualJointsWidget ( QWidget *  parent,
moveit_setup_assistant::MoveItConfigDataPtr  config_data 
)

Definition at line 49 of file virtual_joints_widget.cpp.

Member Function Documentation

void moveit_setup_assistant::VirtualJointsWidget::cancelEditing ( )
privateslot

Cancel changes.

Definition at line 554 of file virtual_joints_widget.cpp.

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

Create the main list view of vjoints for robot

Returns
the widget

Definition at line 86 of file virtual_joints_widget.cpp.

QWidget * moveit_setup_assistant::VirtualJointsWidget::createEditWidget ( )
private

Create the screen for editing vjoints

Returns
the widget

Definition at line 156 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::deleteSelected ( )
privateslot

Delete currently editing ite.

Definition at line 403 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::doneEditing ( )
privateslot

Save editing changes.

Definition at line 445 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::edit ( const std::string &  name)
private

Edit the vjoint with the input name

Parameters
namename of vjoint

Definition at line 302 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::editDoubleClicked ( int  row,
int  column 
)
privateslot

Edit the double clicked element.

Definition at line 248 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::editSelected ( )
privateslot

Edit whatever element is selected.

Definition at line 286 of file virtual_joints_widget.cpp.

srdf::Model::VirtualJoint * moveit_setup_assistant::VirtualJointsWidget::findVJointByName ( const std::string &  name)
private

Find the associated data by name

Parameters
name- name of data to find in datastructure
Returns
pointer to data in datastructure

Definition at line 375 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::focusGiven ( )
virtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 619 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::loadChildLinksComboBox ( )
private

Populate the combo dropdown box with avail parent links

Definition at line 356 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::loadDataTable ( )
private

Load the robot vjoints into the table

Definition at line 566 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::loadJointTypesComboBox ( )
private

Populate the combo dropdown box with avail group names

Definition at line 342 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::previewClicked ( int  row,
int  column 
)
privateslot

Preview whatever element is selected.

Definition at line 256 of file virtual_joints_widget.cpp.

void moveit_setup_assistant::VirtualJointsWidget::referenceFrameChanged ( )
signal

Event sent when this widget updated the root joint, which changes the frame of reference for the model.

void moveit_setup_assistant::VirtualJointsWidget::showNewScreen ( )
privateslot

Show edit screen.

Definition at line 227 of file virtual_joints_widget.cpp.

Member Data Documentation

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_cancel_

Definition at line 82 of file virtual_joints_widget.h.

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_delete_

Definition at line 80 of file virtual_joints_widget.h.

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_edit_

Definition at line 79 of file virtual_joints_widget.h.

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_save_

Definition at line 81 of file virtual_joints_widget.h.

QComboBox* moveit_setup_assistant::VirtualJointsWidget::child_link_field_

Definition at line 86 of file virtual_joints_widget.h.

moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::VirtualJointsWidget::config_data_
private

Contains all the configuration data for the setup assistant.

Definition at line 133 of file virtual_joints_widget.h.

std::string moveit_setup_assistant::VirtualJointsWidget::current_edit_vjoint_
private

Orignal name of vjoint currently being edited. This is used to find the element in the vector.

Definition at line 136 of file virtual_joints_widget.h.

QTableWidget* moveit_setup_assistant::VirtualJointsWidget::data_table_

Definition at line 78 of file virtual_joints_widget.h.

QComboBox* moveit_setup_assistant::VirtualJointsWidget::joint_type_field_

Definition at line 87 of file virtual_joints_widget.h.

QLineEdit* moveit_setup_assistant::VirtualJointsWidget::parent_name_field_

Definition at line 85 of file virtual_joints_widget.h.

QStackedLayout* moveit_setup_assistant::VirtualJointsWidget::stacked_layout_

Definition at line 83 of file virtual_joints_widget.h.

QWidget* moveit_setup_assistant::VirtualJointsWidget::vjoint_edit_widget_

Definition at line 89 of file virtual_joints_widget.h.

QWidget* moveit_setup_assistant::VirtualJointsWidget::vjoint_list_widget_

Definition at line 88 of file virtual_joints_widget.h.

QLineEdit* moveit_setup_assistant::VirtualJointsWidget::vjoint_name_field_

Definition at line 84 of file virtual_joints_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