27using namespace std::chrono_literals;
47 this->lastMessage_ = scanmsg;
49 auto fwdist = scanmsg.ranges[0] ;
52 if (fwdist == std::numeric_limits<float>::infinity() || fwdist != fwdist)
57 "[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)