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

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

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_
 
QStackedWidget * stacked_widget_
 
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 56 of file virtual_joints_widget.h.

Constructor & Destructor Documentation

◆ VirtualJointsWidget()

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

Definition at line 92 of file virtual_joints_widget.cpp.

Member Function Documentation

◆ cancelEditing

void moveit_setup_assistant::VirtualJointsWidget::cancelEditing ( )
privateslot

Cancel changes.

Definition at line 565 of file virtual_joints_widget.cpp.

◆ createContentsWidget()

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

Create the main list view of vjoints for robot

Returns
the widget

Definition at line 125 of file virtual_joints_widget.cpp.

◆ createEditWidget()

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

Create the screen for editing vjoints

Returns
the widget

Definition at line 193 of file virtual_joints_widget.cpp.

◆ deleteSelected

void moveit_setup_assistant::VirtualJointsWidget::deleteSelected ( )
privateslot

Delete currently editing ite.

Definition at line 414 of file virtual_joints_widget.cpp.

◆ doneEditing

void moveit_setup_assistant::VirtualJointsWidget::doneEditing ( )
privateslot

Save editing changes.

Definition at line 457 of file virtual_joints_widget.cpp.

◆ edit()

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 314 of file virtual_joints_widget.cpp.

◆ editDoubleClicked

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

Edit the double clicked element.

Definition at line 283 of file virtual_joints_widget.cpp.

◆ editSelected

void moveit_setup_assistant::VirtualJointsWidget::editSelected ( )
privateslot

Edit whatever element is selected.

Definition at line 298 of file virtual_joints_widget.cpp.

◆ findVJointByName()

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 387 of file virtual_joints_widget.cpp.

◆ focusGiven()

void moveit_setup_assistant::VirtualJointsWidget::focusGiven ( )
overridevirtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 629 of file virtual_joints_widget.cpp.

◆ loadChildLinksComboBox()

void moveit_setup_assistant::VirtualJointsWidget::loadChildLinksComboBox ( )
private

Populate the combo dropdown box with avail parent links

Definition at line 368 of file virtual_joints_widget.cpp.

◆ loadDataTable()

void moveit_setup_assistant::VirtualJointsWidget::loadDataTable ( )
private

Load the robot vjoints into the table

Definition at line 577 of file virtual_joints_widget.cpp.

◆ loadJointTypesComboBox()

void moveit_setup_assistant::VirtualJointsWidget::loadJointTypesComboBox ( )
private

Populate the combo dropdown box with avail group names

Definition at line 354 of file virtual_joints_widget.cpp.

◆ previewClicked

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

Preview whatever element is selected.

Definition at line 291 of file virtual_joints_widget.cpp.

◆ referenceFrameChanged

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.

◆ showNewScreen

void moveit_setup_assistant::VirtualJointsWidget::showNewScreen ( )
privateslot

Show edit screen.

Definition at line 262 of file virtual_joints_widget.cpp.

Member Data Documentation

◆ btn_cancel_

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_cancel_

Definition at line 77 of file virtual_joints_widget.h.

◆ btn_delete_

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_delete_

Definition at line 75 of file virtual_joints_widget.h.

◆ btn_edit_

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_edit_

Definition at line 74 of file virtual_joints_widget.h.

◆ btn_save_

QPushButton* moveit_setup_assistant::VirtualJointsWidget::btn_save_

Definition at line 76 of file virtual_joints_widget.h.

◆ child_link_field_

QComboBox* moveit_setup_assistant::VirtualJointsWidget::child_link_field_

Definition at line 81 of file virtual_joints_widget.h.

◆ config_data_

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

Contains all the configuration data for the setup assistant.

Definition at line 128 of file virtual_joints_widget.h.

◆ current_edit_vjoint_

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 131 of file virtual_joints_widget.h.

◆ data_table_

QTableWidget* moveit_setup_assistant::VirtualJointsWidget::data_table_

Definition at line 73 of file virtual_joints_widget.h.

◆ joint_type_field_

QComboBox* moveit_setup_assistant::VirtualJointsWidget::joint_type_field_

Definition at line 82 of file virtual_joints_widget.h.

◆ parent_name_field_

QLineEdit* moveit_setup_assistant::VirtualJointsWidget::parent_name_field_

Definition at line 80 of file virtual_joints_widget.h.

◆ stacked_widget_

QStackedWidget* moveit_setup_assistant::VirtualJointsWidget::stacked_widget_

Definition at line 78 of file virtual_joints_widget.h.

◆ vjoint_edit_widget_

QWidget* moveit_setup_assistant::VirtualJointsWidget::vjoint_edit_widget_

Definition at line 84 of file virtual_joints_widget.h.

◆ vjoint_list_widget_

QWidget* moveit_setup_assistant::VirtualJointsWidget::vjoint_list_widget_

Definition at line 83 of file virtual_joints_widget.h.

◆ vjoint_name_field_

QLineEdit* moveit_setup_assistant::VirtualJointsWidget::vjoint_name_field_

Definition at line 79 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 Sat May 3 2025 02:28:05