This PR changes the code to make the occupancy grid from the space layer instead of the obstacle layer.
This produces navigation map with less "fake points".
Moreover, since the space layer is not binarized, it adds a threshold parameter to decide if a pixel value corresponds to a free or occupied cell.
This PR changes the code to make the occupancy grid from the space layer instead of the obstacle layer. This produces navigation map with less "fake points". Moreover, since the space layer is not binarized, it adds a threshold parameter to decide if a pixel value corresponds to a free or occupied cell.
Before this PR:
After this PR (threshold = 128):
After this PR (threshold = 110):
After this PR (threshold = 70):