#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 65 of file robot_poses_widget.h.
moveit_setup_assistant::RobotPosesWidget::RobotPosesWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
Definition at line 54 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::cancelEditing | ( | ) | [private, slot] |
Cancel changes.
Definition at line 745 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 110 of file robot_poses_widget.cpp.
QWidget * moveit_setup_assistant::RobotPosesWidget::createEditWidget | ( | ) | [private] |
Create the screen for editing poses
Definition at line 194 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::deleteSelected | ( | ) | [private, slot] |
Delete currently editing ite.
Definition at line 602 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::doneEditing | ( | ) | [private, slot] |
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
name | name 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.
void moveit_setup_assistant::RobotPosesWidget::editSelected | ( | ) | [private, slot] |
Edit whatever element is selected.
Definition at line 410 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 574 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 802 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::loadDataTable | ( | ) | [private] |
Load the robot poses into the table
Definition at line 757 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 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.
void moveit_setup_assistant::RobotPosesWidget::playPoses | ( | ) | [private, slot] |
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.
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 829 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 361 of file robot_poses_widget.cpp.
void moveit_setup_assistant::RobotPosesWidget::showNewScreen | ( | ) | [private, slot] |
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 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
name | - name of joint being changed |
value | - value of joint |
Definition at line 817 of file robot_poses_widget.cpp.
Definition at line 86 of file robot_poses_widget.h.
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.
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.
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 154 of file robot_poses_widget.h.
QTableWidget* moveit_setup_assistant::RobotPosesWidget::data_table_ |
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.
QStackedLayout* moveit_setup_assistant::RobotPosesWidget::stacked_layout_ |
Definition at line 87 of file robot_poses_widget.h.