16 obstacle_detected_(false),
19 reversing_start_(
ros::Time::now()),
20 reversing_distance_(0.02),
21 reversing_velocity_(0.02),
22 reversing_duration_(0.0)
30 ROS_WARN_STREAM(
"Safety Controller : no parameter on server for reverse, using default '" 37 ROS_WARN_STREAM(
"Safety Controller : no parameter on server for reversing_distance, using default '" 42 ROS_WARN_STREAM(
"Safety Controller : no parameter on server for reversing_velocity, using default '" 86 if (msg->range == -std::numeric_limits<double>::infinity())
ros::Time reversing_start_
ros::Subscriber ranger_subscriber_
void publish(const boost::shared_ptr< M > &message) const
void rangerCB(const sensor_msgs::RangeConstPtr msg)
Keeps track of rangers.
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
double reversing_velocity_
ros::Subscriber enable_controller_subscriber_
ros::Subscriber disable_controller_subscriber_
void disableCB(const std_msgs::EmptyConstPtr msg)
ROS logging output for disabling the controller.
ros::Publisher velocity_command_publisher_
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
SafetyController(ros::NodeHandle &nh_priv, const std::string &name)
#define ROS_WARN_STREAM(args)
double reversing_distance_
#define ROS_INFO_STREAM(args)
void enableCB(const std_msgs::EmptyConstPtr msg)
ROS logging output for enabling the controller.
geometry_msgs::TwistPtr cmd_vel_msg_
bool getParam(const std::string &key, std::string &s) const
ros::Duration reversing_duration_