joint_movement_action_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  * joint_trajectory_action_controller.h
20  *
21  * Created on: 14.04.2011
22  * Author: Henning Deeken <hdeeken@uos.de>
23  */
24 
25 #ifndef JOINT_MOVEMENT_ACTION_CONTROLLER_H__
26 #define JOINT_MOVEMENT_ACTION_CONTROLLER_H__
27 
28 #include <vector>
29 
30 #include <ros/node_handle.h>
31 
34 
35 #include <katana/AbstractKatana.h>
36 #include <sensor_msgs/JointState.h>
37 #include <katana_msgs/JointMovementAction.h>
38 
39 #include <moveit_msgs/JointLimits.h>
40 
41 namespace katana
42 {
43 
45 {
48 
49 public:
52 
53 private:
54  // robot and joint state
55  std::vector<std::string> joints_; // controlled joints, same order as expected by the KNI (index 0 = first motor, ...)
56  std::vector<std::string> gripper_joints_;
58 
59  sensor_msgs::JointState movement_goal_;
60 
61  // action server
62  void executeCB(const JMAS::GoalConstPtr &goal);
64 
65  bool suitableJointGoal(const std::vector<std::string>& jointGoalNames);
66 
67  sensor_msgs::JointState adjustJointGoalPositionsToMotorLimits(const sensor_msgs::JointState &jointGoal);
68 
69 };
70 }
71 
72 #endif /* JOINT_MOVEMENT_ACTION_CONTROLLER_H_ */
sensor_msgs::JointState adjustJointGoalPositionsToMotorLimits(const sensor_msgs::JointState &jointGoal)
actionlib::SimpleActionServer< katana_msgs::JointMovementAction > JMAS
bool suitableJointGoal(const std::vector< std::string > &jointGoalNames)
actionlib::SimpleActionClient< katana_msgs::JointMovementAction > JMAC
JointMovementActionController(boost::shared_ptr< AbstractKatana > katana)


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