18 _nh(node_handle), _pnh(private_node_handle)
28 std::string itopic_odom =
"odom";
29 std::string otopic_is_straight =
"is_straight";
35 std::string threshold_time =
"/bed_detection/threshold_time";
42 std::string threshold_twist =
"/bed_detection/threshold_twist";
106 double track_time = (tp_2 -
_tp_1).toSec();
Header for theBed Detection Class.
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
bool _is_init
states if system is init
ros::Publisher _pub_is_straight
#define ROS_INFO_STREAM(args)
BedDetection(const ros::NodeHandle &node_handle, const ros::NodeHandle &private_node_handle)
bool getParam(const std::string &key, std::string &s) const
void cb_is_straight(const nm::OdometryPtr &odom_sub)
#define ROS_ERROR_STREAM(args)
This class implements the detection of a bed given an odometry.
ros::NodeHandle _nh
node handle
ros::Subscriber _sub_odom