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


Constructor & Destructor Documentation

Definition at line 55 of file robot_poses_widget.cpp.


Member Function Documentation

Cancel changes.

Definition at line 762 of file robot_poses_widget.cpp.

Create the main list view of poses for robot

Returns:
the widget

Definition at line 114 of file robot_poses_widget.cpp.

Create the screen for editing poses

Returns:
the widget

Definition at line 199 of file robot_poses_widget.cpp.

Delete currently editing ite.

Definition at line 619 of file robot_poses_widget.cpp.

Save editing changes.

Definition at line 662 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 437 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 318 of file robot_poses_widget.cpp.

Edit whatever element is selected.

Definition at line 421 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 591 of file robot_poses_widget.cpp.

Recieved when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 819 of file robot_poses_widget.cpp.

Load the robot poses into the table

Definition at line 774 of file robot_poses_widget.cpp.

Populate the combo dropdown box with avail group names

Definition at line 484 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 501 of file robot_poses_widget.cpp.

Play through the poses.

Definition at line 404 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 327 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 847 of file robot_poses_widget.cpp.

Show the robot in its default joint positions.

Definition at line 369 of file robot_poses_widget.cpp.

Show edit screen.

Definition at line 296 of file robot_poses_widget.cpp.

Show the robot in the current pose

Definition at line 345 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 835 of file robot_poses_widget.cpp.


Member Data Documentation

Definition at line 87 of file robot_poses_widget.h.

Definition at line 85 of file robot_poses_widget.h.

Definition at line 84 of file robot_poses_widget.h.

Definition at line 86 of file robot_poses_widget.h.

Definition at line 97 of file robot_poses_widget.h.

Definition at line 90 of file robot_poses_widget.h.

Contains all the configuration data for the setup assistant.

Definition at line 153 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 156 of file robot_poses_widget.h.

Definition at line 83 of file robot_poses_widget.h.

Definition at line 92 of file robot_poses_widget.h.

Definition at line 94 of file robot_poses_widget.h.

Definition at line 93 of file robot_poses_widget.h.

The joints currently in the selected planning group.

Definition at line 162 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 159 of file robot_poses_widget.h.

Definition at line 96 of file robot_poses_widget.h.

Definition at line 95 of file robot_poses_widget.h.

Definition at line 91 of file robot_poses_widget.h.

Remember the publisher for quick publishing later.

Definition at line 165 of file robot_poses_widget.h.

Definition at line 170 of file robot_poses_widget.h.

Definition at line 89 of file robot_poses_widget.h.

Definition at line 88 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 Mon Oct 6 2014 02:32:28