21using namespace std::chrono_literals;
32 const sensor_msgs::msg::LaserScan & scanmsg)
36 auto fwdist = scanmsg.ranges[0] ;
39 if (fwdist == std::numeric_limits<float>::infinity() || fwdist != fwdist)
44 "[CpLidarSensorData] Distance to forward obstacle is not a number, setting default value "
void onInitialize() override
float forwardObstacleDistance
sensor_msgs::msg::LaserScan lastMessage_
const float SECURITY_DISTANCE
void MessageCallbackStoreDistanceToWall(const sensor_msgs::msg::LaserScan &scanmsg)
rclcpp::Logger getLogger()
rclcpp::Node::SharedPtr getNode()
boost::signals2::connection onMessageReceived(void(T::*callback)(const MessageType &), T *object)