Is there a way to extract the edge with coordinates out of occupancy map in ROS?
I'm looking for a way in ROS Kinetic on Ubuntu 16.04 to extract a line (edge) out of a occupancy map made in OctoMap with 3D laser (lidar) data. I have precise imu and gps data. I need to obtain coordinates of the mapped edge to make a map of safe space for my vessel to navigate. I've already have the occupancy map in .bt or .ot format (octrees) from octomap_server package in ROS. Is there a way to detect a nearest occupied cells and extract coordinates in RViz?