auto_docking_ros.hpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10 ** Ifdefs
11 *****************************************************************************/
12 
13 #ifndef AUTO_DOCKING_ROS_HPP_
14 #define AUTO_DOCKING_ROS_HPP_
15 
16 /*****************************************************************************
17 ** Includes
18 *****************************************************************************/
19 
20 #include <ros/ros.h>
22 #include <kobuki_msgs/AutoDockingAction.h>
23 
28 
29 #include <std_msgs/String.h>
30 #include <nav_msgs/Odometry.h>
31 #include <kobuki_msgs/SensorState.h>
32 #include <kobuki_msgs/DockInfraRed.h>
33 
34 #include <sstream>
35 #include <vector>
37 #include <ecl/linear_algebra.hpp>
38 #include <kdl/frames.hpp>
40 
42 
43 namespace kobuki
44 {
45 
47  nav_msgs::Odometry,
48  kobuki_msgs::SensorState,
49  kobuki_msgs::DockInfraRed
51 
53 {
54 public:
55 // AutoDockingROS();
56  AutoDockingROS(std::string name);
57 // AutoDockingROS(ros::NodeHandle& nh);
58 // AutoDockingROS(ros::NodeHandle& nh, std::string name);
60 
61  bool init(ros::NodeHandle& nh);
62  void spin();
63 
64 private:
67 
68  std::string name_;
70 
73 
74  kobuki_msgs::AutoDockingGoal goal_;
75  kobuki_msgs::AutoDockingFeedback feedback_;
76  kobuki_msgs::AutoDockingResult result_;
77 
80 
85 
86  void goalCb();
87  void preemptCb();
88 
89  void syncCb(const nav_msgs::OdometryConstPtr& odom,
90  const kobuki_msgs::SensorStateConstPtr& core,
91  const kobuki_msgs::DockInfraRedConstPtr& ir);
92  void debugCb(const std_msgs::StringConstPtr& msg);
93 };
94 
95 } //namespace kobuki
96 #endif /* AUTO_DOCKING_ROS_HPP_ */
97 
ros::Publisher debug_jabber_
boost::shared_ptr< message_filters::Subscriber< nav_msgs::Odometry > > odom_sub_
kobuki_msgs::AutoDockingGoal goal_
kobuki_msgs::AutoDockingFeedback feedback_
message_filters::sync_policies::ApproximateTime< nav_msgs::Odometry, kobuki_msgs::SensorState, kobuki_msgs::DockInfraRed > SyncPolicy
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
boost::shared_ptr< message_filters::Subscriber< kobuki_msgs::SensorState > > core_sub_
void syncCb(const nav_msgs::OdometryConstPtr &odom, const kobuki_msgs::SensorStateConstPtr &core, const kobuki_msgs::DockInfraRedConstPtr &ir)
ros::Publisher motor_power_enabler_
kobuki_msgs::AutoDockingResult result_
AutoDockingROS(std::string name)
actionlib::SimpleActionServer< kobuki_msgs::AutoDockingAction > as_
bool init(ros::NodeHandle &nh)
ros::Publisher velocity_commander_
void debugCb(const std_msgs::StringConstPtr &msg)
boost::shared_ptr< message_filters::Subscriber< kobuki_msgs::DockInfraRed > > ir_sub_


kobuki_auto_docking
Author(s): Younghun Ju
autogenerated on Mon Jun 10 2019 13:44:57