Function reduce_lidar_fov

Function Documentation

void reduce_lidar_fov(std::vector<float> &ranges, int ranges_to_remove)

Preprocesses LiDAR data by removing a specified number of range values from the beginning and end of the vector.

Parameters:
  • ranges – A reference to a vector of float values representing LiDAR range data.

  • ranges_to_remove – The number of range values to remove from both the beginning and end of the vector.