Difference between Costmap2D and OccupancyGrid not clear
Hello
It is not clear to me what the difference between costmap2d and OccupancyGrid is.
From what I learned in Tutorials, OccupancyGrid will be formed using gmapping and it will have three values: 0 for free space, 100 for obstacle, and -1 for unknown. This map will be used later for navigation.
But in navigation stack, it says that global planner uses costmap2d to make a plan and not the occupancyGrid and that costmap2D has also three values for free, occupied and unknown.
So, may questions are: 1- What is the difference between Costmap2D and OccupancyGrid 2- How to convert from one to another and where this is done? 3- Why Global Planner does not use OccupancyGrid, which seems to provide similar information to Costmap2D
Any clarification of these will be appreciated.
Thanks.
Anis
I agree that the names are confusing.