cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.09k stars 2.25k forks source link

Create a node that accesses the occupancy grid and then applies thresholding on it #1778

Closed gsh89 closed 3 years ago

gsh89 commented 3 years ago

This is the reason I want to do this:

I had encountered the issue of obstacles not being detected properly in the costmap (i.e. they were not showing up as inflated) similar to this issue. The work around suggested there basically involved using thresholding to make the map look like that created using Gmapping. Doing that helped in resolving the issue but the created map became very blocky (not like the nice looking original Cartographer maps). I was wondering if it was possible to create a copy of the original occupancy grid every time the costmap needs it , threshold it to convert it to a Gmapping style occupancy grid and publish a duplicate map topic.

Can someone please advise ?