safety_controller.hpp
Go to the documentation of this file.
1 
6 #ifndef YOCS_SAFETY_CONTROLLER_HPP_
7 #define YOCS_SAFETY_CONTROLLER_HPP_
8 
9 /*****************************************************************************
10 ** Includes
11 *****************************************************************************/
12 
13 #include <string>
14 #include <geometry_msgs/Twist.h>
15 #include <ros/ros.h>
16 #include <std_msgs/Empty.h>
17 #include <sensor_msgs/Range.h>
19 
21 {
22 
36 {
37 public:
38  SafetyController(ros::NodeHandle& nh_priv, const std::string& name);
40 
45  bool init();
46 
50  void spinOnce();
51 
52 
53 protected:
55  std::string name_;
58  geometry_msgs::TwistPtr cmd_vel_msg_; // velocity command
59 
67  bool reverse_;
71  bool reversing_;
89 
94  void enableCB(const std_msgs::EmptyConstPtr msg);
95 
100  void disableCB(const std_msgs::EmptyConstPtr msg);
101 
106  void rangerCB(const sensor_msgs::RangeConstPtr msg);
107 
108 };
109 
110 } // namespace yocs_safety_controller
111 
112 #endif // YOCS_SAFETY_CONTROLLER_HPP_
void rangerCB(const sensor_msgs::RangeConstPtr msg)
Keeps track of rangers.
Definition: library.cpp:81
void disableCB(const std_msgs::EmptyConstPtr msg)
ROS logging output for disabling the controller.
Definition: library.cpp:69
SafetyController(ros::NodeHandle &nh_priv, const std::string &name)
Definition: library.cpp:12
void enableCB(const std_msgs::EmptyConstPtr msg)
ROS logging output for enabling the controller.
Definition: library.cpp:57


yocs_safety_controller
Author(s): Marcus Liebhardt
autogenerated on Mon Jun 10 2019 15:54:01