#include <robot_poses_widget.h>
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::GroupState * | findPoseByName (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 |
Definition at line 66 of file robot_poses_widget.h.
moveit_setup_assistant::RobotPosesWidget::RobotPosesWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
Definition at line 55 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::cancelEditing | ( | ) | [private, slot] |
Cancel changes.
Definition at line 762 of file robot_poses_widget.cpp.
QWidget * moveit_setup_assistant::RobotPosesWidget::createContentsWidget | ( | ) | [private] |
Create the main list view of poses for robot
Definition at line 114 of file robot_poses_widget.cpp.
QWidget * moveit_setup_assistant::RobotPosesWidget::createEditWidget | ( | ) | [private] |
Create the screen for editing poses
Definition at line 199 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::deleteSelected | ( | ) | [private, slot] |
Delete currently editing ite.
Definition at line 619 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::doneEditing | ( | ) | [private, slot] |
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
name | name 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.
void moveit_setup_assistant::RobotPosesWidget::editSelected | ( | ) | [private, slot] |
Edit whatever element is selected.
Definition at line 421 of file robot_poses_widget.cpp.
srdf::Model::GroupState * moveit_setup_assistant::RobotPosesWidget::findPoseByName | ( | const std::string & | name | ) | [private] |
Find the associated data by name
name | - name of data to find in datastructure |
Definition at line 591 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::focusGiven | ( | ) | [virtual] |
Recieved when this widget is chosen from the navigation menu.
Reimplemented from SetupScreenWidget.
Definition at line 819 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::loadDataTable | ( | ) | [private] |
Load the robot poses into the table
Definition at line 774 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 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.
void moveit_setup_assistant::RobotPosesWidget::playPoses | ( | ) | [private, slot] |
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.
void moveit_setup_assistant::RobotPosesWidget::publishJoints | ( | ) | [private, slot] |
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.
void moveit_setup_assistant::RobotPosesWidget::showDefaultPose | ( | ) | [private, slot] |
Show the robot in its default joint positions.
Definition at line 369 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::showNewScreen | ( | ) | [private, slot] |
Show edit screen.
Definition at line 296 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 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
name | - name of joint being changed |
value | - value of joint |
Definition at line 835 of file robot_poses_widget.cpp.
Definition at line 87 of file robot_poses_widget.h.
Definition at line 85 of file robot_poses_widget.h.
QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_edit_ |
Definition at line 84 of file robot_poses_widget.h.
QPushButton* moveit_setup_assistant::RobotPosesWidget::btn_save_ |
Definition at line 86 of file robot_poses_widget.h.
Definition at line 97 of file robot_poses_widget.h.
QVBoxLayout* moveit_setup_assistant::RobotPosesWidget::column2_ |
Definition at line 90 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 153 of file robot_poses_widget.h.
std::string moveit_setup_assistant::RobotPosesWidget::current_edit_pose_ [private] |
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.
QTableWidget* moveit_setup_assistant::RobotPosesWidget::data_table_ |
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.
std::vector<const robot_model::JointModel*> moveit_setup_assistant::RobotPosesWidget::joint_models_ [private] |
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.
QStackedLayout* moveit_setup_assistant::RobotPosesWidget::stacked_layout_ |
Definition at line 88 of file robot_poses_widget.h.