katana_gripper_grasp_controller.h
Go to the documentation of this file.
1 /*
2  * UOS-ROS packages - Robot Operating System code by the University of Osnabrück
3  * Copyright (C) 2010 University of Osnabrück
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  * katana_gripper_grasp_controller.h
20  *
21  * Created on: 29.01.2011
22  * Author: Martin Günther <mguenthe@uos.de>
23  *
24  * based on pr2_gripper_grasp_controller
25  */
26 
27 #ifndef KATANA_GRIPPER_GRASP_CONTROLLER_H_
28 #define KATANA_GRIPPER_GRASP_CONTROLLER_H_
29 
30 #include <ros/ros.h>
31 
33 
34 #include <control_msgs/GripperCommandAction.h>
35 #include <control_msgs/QueryTrajectoryState.h>
36 
37 #include <katana/AbstractKatana.h>
38 
39 
40 namespace katana
41 {
42 
44 {
45 public:
48 
49 private:
52 
55 
57 
60 
61  void executeCB(const control_msgs::GripperCommandGoalConstPtr &goal);
62 
63  bool serviceCallback(control_msgs::QueryTrajectoryState::Request &request,
64  control_msgs::QueryTrajectoryState::Response &response);
65 
66 };
67 
68 }
69 
70 #endif /* KATANA_GRIPPER_GRASP_CONTROLLER_H_ */
void executeCB(const control_msgs::GripperCommandGoalConstPtr &goal)
double goal_threshold_
A difference in desired goal angle and actual goal angle above this value indicates that the goal was...
boost::shared_ptr< AbstractKatana > katana_
actionlib::SimpleActionServer< control_msgs::GripperCommandAction > * action_server_
Action server for the grasp posture action.
KatanaGripperGraspController(boost::shared_ptr< AbstractKatana > katana)
ros::ServiceServer query_srv_
Server for the posture query service.
bool serviceCallback(control_msgs::QueryTrajectoryState::Request &request, control_msgs::QueryTrajectoryState::Response &response)


katana
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:58