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

#include <robot_poses_widget.h>

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

Public Member Functions

virtual void focusGiven ()
 Received when this widget is chosen from the navigation menu. More...
 
 RobotPosesWidget (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_
 
QLabel * collision_warning_
 
QVBoxLayout * column2_
 
QTableWidget * data_table_
 
QComboBox * group_name_field_
 
QVBoxLayout * joint_list_layout_
 
QWidget * joint_list_widget_
 
QWidget * pose_edit_widget_
 
QWidget * pose_list_widget_
 
QLineEdit * pose_name_field_
 
QScrollArea * scroll_area_
 
QStackedLayout * stacked_layout_
 

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 loadJointSliders (const QString &selected)
 Run this whenever the group is changed. More...
 
void playPoses ()
 Play through the poses. More...
 
void previewClicked (int row, int column)
 Preview whatever element is selected. More...
 
void publishJoints ()
 Publishes a joint state message based on all the slider locations in a planning group, to rviz. More...
 
void showDefaultPose ()
 Show the robot in its default joint positions. More...
 
void showNewScreen ()
 Show edit screen. More...
 
void updateRobotModel (const std::string &name, double value)
 

Private Member Functions

QWidget * createContentsWidget ()
 
QWidget * createEditWidget ()
 
void edit (int row)
 
srdf::Model::GroupStatefindPoseByName (const std::string &name, const std::string &group)
 
void loadDataTable ()
 
void loadGroupsComboBox ()
 
void showPose (srdf::Model::GroupState *pose)
 

Private Attributes

moveit_setup_assistant::MoveItConfigDataPtr config_data_
 Contains all the configuration data for the setup assistant. More...
 
srdf::Model::GroupStatecurrent_edit_pose_
 Pointer to currently edited group state. More...
 
std::vector< const robot_model::JointModel * > joint_models_
 The joints currently in the selected planning group. More...
 
std::map< std::string, double > joint_state_map_
 All the joint slider values that have thus far been seen. May contain more than just the current joints' values. More...
 
ros::Publisher pub_robot_state_
 Remember the publisher for quick publishing later. More...
 
collision_detection::CollisionRequest request
 

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 65 of file robot_poses_widget.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file robot_poses_widget.cpp.

Member Function Documentation

void moveit_setup_assistant::RobotPosesWidget::cancelEditing ( )
privateslot

Cancel changes.

Definition at line 716 of file robot_poses_widget.cpp.

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

Create the main list view of poses for robot

Returns
the widget

Definition at line 110 of file robot_poses_widget.cpp.

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

Create the screen for editing poses

Returns
the widget

Definition at line 194 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::deleteSelected ( )
privateslot

Delete currently editing ite.

Definition at line 583 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::doneEditing ( )
privateslot

Save editing changes.

Definition at line 621 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::edit ( int  row)
private

Edit the pose with the input name

Parameters
namename of pose

Definition at line 417 of file robot_poses_widget.cpp.

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

Edit the double clicked element.

Definition at line 311 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::editSelected ( )
privateslot

Edit whatever element is selected.

Definition at line 406 of file robot_poses_widget.cpp.

srdf::Model::GroupState * moveit_setup_assistant::RobotPosesWidget::findPoseByName ( const std::string &  name,
const std::string &  group 
)
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 563 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::focusGiven ( )
virtual

Received when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 773 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::loadDataTable ( )
private

Load the robot poses into the table

Definition at line 728 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::loadGroupsComboBox ( )
private

Populate the combo dropdown box with avail group names

Definition at line 462 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::loadJointSliders ( const QString &  selected)
privateslot

Run this whenever the group is changed.

Definition at line 478 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::playPoses ( )
privateslot

Play through the poses.

Definition at line 389 of file robot_poses_widget.cpp.

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

Preview whatever element is selected.

Definition at line 320 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::publishJoints ( )
privateslot

Publishes a joint state message based on all the slider locations in a planning group, to rviz.

Definition at line 800 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::showDefaultPose ( )
privateslot

Show the robot in its default joint positions.

Definition at line 357 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::showNewScreen ( )
privateslot

Show edit screen.

Definition at line 289 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::showPose ( srdf::Model::GroupState pose)
private

Show the robot in the current pose

Definition at line 334 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::updateRobotModel ( const std::string &  name,
double  value 
)
privateslot

Call when one of the sliders has its value changed to store its value in kinematic model

Parameters
name- name of joint being changed
value- value of joint

Definition at line 788 of file robot_poses_widget.cpp.

Member Data Documentation

QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_cancel_

Definition at line 86 of file robot_poses_widget.h.

QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_delete_

Definition at line 84 of file robot_poses_widget.h.

QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_edit_

Definition at line 83 of file robot_poses_widget.h.

QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_save_

Definition at line 85 of file robot_poses_widget.h.

QLabel* moveit_setup_assistant::RobotPosesWidget::collision_warning_

Definition at line 96 of file robot_poses_widget.h.

QVBoxLayout* moveit_setup_assistant::RobotPosesWidget::column2_

Definition at line 89 of file robot_poses_widget.h.

moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::RobotPosesWidget::config_data_
private

Contains all the configuration data for the setup assistant.

Definition at line 151 of file robot_poses_widget.h.

srdf::Model::GroupState* moveit_setup_assistant::RobotPosesWidget::current_edit_pose_
private

Pointer to currently edited group state.

Definition at line 154 of file robot_poses_widget.h.

QTableWidget* moveit_setup_assistant::RobotPosesWidget::data_table_

Definition at line 82 of file robot_poses_widget.h.

QComboBox* moveit_setup_assistant::RobotPosesWidget::group_name_field_

Definition at line 91 of file robot_poses_widget.h.

QVBoxLayout* moveit_setup_assistant::RobotPosesWidget::joint_list_layout_

Definition at line 93 of file robot_poses_widget.h.

QWidget* moveit_setup_assistant::RobotPosesWidget::joint_list_widget_

Definition at line 92 of file robot_poses_widget.h.

std::vector<const robot_model::JointModel*> moveit_setup_assistant::RobotPosesWidget::joint_models_
private

The joints currently in the selected planning group.

Definition at line 160 of file robot_poses_widget.h.

std::map<std::string, double> moveit_setup_assistant::RobotPosesWidget::joint_state_map_
private

All the joint slider values that have thus far been seen. May contain more than just the current joints' values.

Definition at line 157 of file robot_poses_widget.h.

QWidget* moveit_setup_assistant::RobotPosesWidget::pose_edit_widget_

Definition at line 95 of file robot_poses_widget.h.

QWidget* moveit_setup_assistant::RobotPosesWidget::pose_list_widget_

Definition at line 94 of file robot_poses_widget.h.

QLineEdit* moveit_setup_assistant::RobotPosesWidget::pose_name_field_

Definition at line 90 of file robot_poses_widget.h.

ros::Publisher moveit_setup_assistant::RobotPosesWidget::pub_robot_state_
private

Remember the publisher for quick publishing later.

Definition at line 163 of file robot_poses_widget.h.

collision_detection::CollisionRequest moveit_setup_assistant::RobotPosesWidget::request
private

Definition at line 168 of file robot_poses_widget.h.

QScrollArea* moveit_setup_assistant::RobotPosesWidget::scroll_area_

Definition at line 88 of file robot_poses_widget.h.

QStackedLayout* moveit_setup_assistant::RobotPosesWidget::stacked_layout_

Definition at line 87 of file robot_poses_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