RViz plugin for grasp collection. More...
#include <GraspCollectionPanel.h>
Public Member Functions | |
GraspCollectionPanel (QWidget *parent=NULL) | |
Create a new GraspCollectionPanel. | |
virtual void | load (const rviz::Config &config) |
Load RViz configuration settings. | |
virtual void | save (rviz::Config config) const |
Save RViz configuration settings. | |
Private Slots | |
void | executeGraspAndStore () |
Call the grasp and store action server. | |
Private Member Functions | |
void | doneCallback (const actionlib::SimpleClientGoalState &state, const rail_pick_and_place_msgs::GraspAndStoreResultConstPtr &result) |
Callback for when the grasp and store action server finishes. | |
void | feedbackCallback (const rail_pick_and_place_msgs::GraspAndStoreFeedbackConstPtr &feedback) |
Callback for when the grasp and store action sends feedback. | |
Private Attributes | |
actionlib::SimpleActionClient < rail_pick_and_place_msgs::GraspAndStoreAction > | grasp_and_store_ac_ |
QPushButton * | grasp_and_store_button_ |
QLabel * | grasp_and_store_status_ |
QCheckBox * | lift_box_ |
QLineEdit * | name_input_ |
QCheckBox * | verify_box_ |
RViz plugin for grasp collection.
The grasp collection panel allows for calling the grasp and store action server with the associated settings.
Definition at line 37 of file GraspCollectionPanel.h.
GraspCollectionPanel::GraspCollectionPanel | ( | QWidget * | parent = NULL | ) |
Create a new GraspCollectionPanel.
Creates a new GraspCollectionPanel and adds the correct widgets and action client connections.
parent | The parent widget for this panel (defaults to NULL). |
Definition at line 24 of file GraspCollectionPanel.cpp.
void GraspCollectionPanel::doneCallback | ( | const actionlib::SimpleClientGoalState & | state, |
const rail_pick_and_place_msgs::GraspAndStoreResultConstPtr & | result | ||
) | [private] |
Callback for when the grasp and store action server finishes.
Sets the status message to the corresponding message.
state | The finished goal state. |
result | The result of the action client call. |
Definition at line 94 of file GraspCollectionPanel.cpp.
void GraspCollectionPanel::executeGraspAndStore | ( | ) | [private, slot] |
Call the grasp and store action server.
Calls the grasp and store action server with the given settings and disable the button.
Definition at line 69 of file GraspCollectionPanel.cpp.
void GraspCollectionPanel::feedbackCallback | ( | const rail_pick_and_place_msgs::GraspAndStoreFeedbackConstPtr & | feedback | ) | [private] |
Callback for when the grasp and store action sends feedback.
Sets the status message to the corresponding message.
feedback | The current feedback message. |
Definition at line 115 of file GraspCollectionPanel.cpp.
void GraspCollectionPanel::load | ( | const rviz::Config & | config | ) | [virtual] |
Load RViz configuration settings.
Load the saved checkbox states if they are set.
config | The RViz configuration settings to load. |
Reimplemented from rviz::Panel.
Definition at line 131 of file GraspCollectionPanel.cpp.
void GraspCollectionPanel::save | ( | rviz::Config | config | ) | const [virtual] |
Save RViz configuration settings.
Save the checkbox states.
config | The RViz configuration settings to save. |
Reimplemented from rviz::Panel.
Definition at line 121 of file GraspCollectionPanel.cpp.
actionlib::SimpleActionClient<rail_pick_and_place_msgs::GraspAndStoreAction> rail::pick_and_place::GraspCollectionPanel::grasp_and_store_ac_ [private] |
The main grasp and store action client.
Definition at line 93 of file GraspCollectionPanel.h.
QPushButton* rail::pick_and_place::GraspCollectionPanel::grasp_and_store_button_ [private] |
The main grasp and store button.
Definition at line 102 of file GraspCollectionPanel.h.
QLabel* rail::pick_and_place::GraspCollectionPanel::grasp_and_store_status_ [private] |
The action server status.
Definition at line 98 of file GraspCollectionPanel.h.
QCheckBox* rail::pick_and_place::GraspCollectionPanel::lift_box_ [private] |
The lift and verify grasp check boxes.
Definition at line 96 of file GraspCollectionPanel.h.
QLineEdit* rail::pick_and_place::GraspCollectionPanel::name_input_ [private] |
The text box for the object name input.
Definition at line 100 of file GraspCollectionPanel.h.
QCheckBox * rail::pick_and_place::GraspCollectionPanel::verify_box_ [private] |
Definition at line 96 of file GraspCollectionPanel.h.