joint_trajectory_action_controller.hpp
Go to the documentation of this file.
1 /*
2 * Copyright 2011 Shadow Robot Company Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 
29 #ifndef _SR_JOINT_TRAJECTORY_ACTION_CONTROLLER_H_
30 #define _SR_JOINT_TRAJECTORY_ACTION_CONTROLLER_H_
31 
32 #include <ros/ros.h>
33 
34 #include <map>
35 #include <string>
36 #include <vector>
38 #include <control_msgs/FollowJointTrajectoryAction.h>
39 
40 namespace shadowrobot
41 {
42 class JointTrajectoryActionController
43 {
45  typedef std::vector<trajectory_msgs::JointTrajectoryPoint> JointTrajectoryPointVec;
46  typedef std::map<std::string, ros::Publisher> JointPubMap;
47 public:
49 
50 private:
52  JointPubMap joint_pub;
54 
55  void execute_trajectory(const control_msgs::FollowJointTrajectoryGoalConstPtr &goal);
56 };
57 } // namespace shadowrobot
58 
59 /* For the emacs weenies in the crowd.
60 Local Variables:
61  c-basic-offset: 2
62 End:
63 */
64 
65 #endif
std::vector< trajectory_msgs::JointTrajectoryPoint > JointTrajectoryPointVec
actionlib::SimpleActionServer< control_msgs::FollowJointTrajectoryAction > JTAS
void execute_trajectory(const control_msgs::FollowJointTrajectoryGoalConstPtr &goal)


sr_mechanism_controllers
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:52:30