Public Member Functions | Public Attributes | Private Slots | Private Member Functions | Private Attributes
moveit_setup_assistant::RobotPosesWidget Class Reference

#include <robot_poses_widget.h>

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

List of all members.

Public Member Functions

virtual void focusGiven ()
 Recieved when this widget is chosen from the navigation menu.
 RobotPosesWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data)

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

Private Member Functions

QWidget * createContentsWidget ()
QWidget * createEditWidget ()
void edit (const std::string &name)
srdf::Model::GroupStatefindPoseByName (const std::string &name)
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.
std::string current_edit_pose_
 Orignal name of pose currently being edited. This is used to find the element in the vector.
std::vector< const
robot_model::JointModel * > 
joint_models_
 The joints currently in the selected planning group.
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.
ros::Publisher pub_robot_state_
 Remember the publisher for quick publishing later.
collision_detection::CollisionRequest request

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

Cancel changes.

Definition at line 745 of file robot_poses_widget.cpp.

Create the main list view of poses for robot

Returns:
the widget

Definition at line 110 of file robot_poses_widget.cpp.

Create the screen for editing poses

Returns:
the widget

Definition at line 194 of file robot_poses_widget.cpp.

Delete currently editing ite.

Definition at line 602 of file robot_poses_widget.cpp.

Save editing changes.

Definition at line 643 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::edit ( const std::string &  name) [private]

Edit the pose with the input name

Parameters:
namename of pose

Definition at line 426 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::editDoubleClicked ( int  row,
int  column 
) [private, slot]

Edit the double clicked element.

Definition at line 311 of file robot_poses_widget.cpp.

Edit whatever element is selected.

Definition at line 410 of file robot_poses_widget.cpp.

Find the associated data by name

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

Definition at line 574 of file robot_poses_widget.cpp.

Recieved when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 802 of file robot_poses_widget.cpp.

Load the robot poses into the table

Definition at line 757 of file robot_poses_widget.cpp.

Populate the combo dropdown box with avail group names

Definition at line 472 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::loadJointSliders ( const QString &  selected) [private, slot]

Run this whenever the group is changed.

Definition at line 488 of file robot_poses_widget.cpp.

Play through the poses.

Definition at line 393 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::previewClicked ( int  row,
int  column 
) [private, slot]

Preview whatever element is selected.

Definition at line 320 of file robot_poses_widget.cpp.

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

Definition at line 829 of file robot_poses_widget.cpp.

Show the robot in its default joint positions.

Definition at line 361 of file robot_poses_widget.cpp.

Show edit screen.

Definition at line 289 of file robot_poses_widget.cpp.

Show the robot in the current pose

Definition at line 338 of file robot_poses_widget.cpp.

void moveit_setup_assistant::RobotPosesWidget::updateRobotModel ( const std::string &  name,
double  value 
) [private, slot]

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 817 of file robot_poses_widget.cpp.


Member Data Documentation

Definition at line 86 of file robot_poses_widget.h.

Definition at line 84 of file robot_poses_widget.h.

Definition at line 83 of file robot_poses_widget.h.

Definition at line 85 of file robot_poses_widget.h.

Definition at line 96 of file robot_poses_widget.h.

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.

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

Definition at line 154 of file robot_poses_widget.h.

Definition at line 82 of file robot_poses_widget.h.

Definition at line 91 of file robot_poses_widget.h.

Definition at line 93 of file robot_poses_widget.h.

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.

Definition at line 95 of file robot_poses_widget.h.

Definition at line 94 of file robot_poses_widget.h.

Definition at line 90 of file robot_poses_widget.h.

Remember the publisher for quick publishing later.

Definition at line 163 of file robot_poses_widget.h.

Definition at line 168 of file robot_poses_widget.h.

Definition at line 88 of file robot_poses_widget.h.

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 Wed Jun 19 2019 19:25:13