Public Member Functions | Private Slots | Private Member Functions | Private Attributes
rail::pick_and_place::GraspCollectionPanel Class Reference

RViz plugin for grasp collection. More...

#include <GraspCollectionPanel.h>

Inheritance diagram for rail::pick_and_place::GraspCollectionPanel:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

Create a new GraspCollectionPanel.

Creates a new GraspCollectionPanel and adds the correct widgets and action client connections.

Parameters:
parentThe parent widget for this panel (defaults to NULL).

Definition at line 24 of file GraspCollectionPanel.cpp.


Member Function Documentation

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.

Parameters:
stateThe finished goal state.
resultThe result of the action client call.

Definition at line 94 of file GraspCollectionPanel.cpp.

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.

Parameters:
feedbackThe 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.

Parameters:
configThe 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.

Parameters:
configThe RViz configuration settings to save.

Reimplemented from rviz::Panel.

Definition at line 121 of file GraspCollectionPanel.cpp.


Member Data Documentation

The main grasp and store action client.

Definition at line 93 of file GraspCollectionPanel.h.

The main grasp and store button.

Definition at line 102 of file GraspCollectionPanel.h.

The action server status.

Definition at line 98 of file GraspCollectionPanel.h.

The lift and verify grasp check boxes.

Definition at line 96 of file GraspCollectionPanel.h.

The text box for the object name input.

Definition at line 100 of file GraspCollectionPanel.h.

Definition at line 96 of file GraspCollectionPanel.h.


The documentation for this class was generated from the following files:


rail_pick_and_place_tools
Author(s): Russell Toris , David Kent
autogenerated on Sun Mar 6 2016 11:39:08