ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

why does gmapping only return a map with 0 and 100 but no other values?

asked 2016-03-18 02:10:00 -0500

edmond320 gravatar image

updated 2016-03-18 02:11:37 -0500

hello everyone

I'm using slam gmapping to produce a map, but I've noticed that the output Occupancy Grid Map(which is broadcast to topic /map) contains only -1,0 and 100 for unknown, free and occupied grids respectively.

I'm wondering is there a way to produce a map with other values say 0.05, 0.37, 0.52 etc. which represent the probability of the grid to be occupied? I've checked out the parameters available for gmapping but could not find a clue about this.If it's not available in gmapping, then how should I do this?

any help will be much appreciated, thank you all!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-18 04:33:16 -0500

al-dev gravatar image

It seems the GMapping::ScanMatcherMap object contains the probabilities of occupancy all the cells as floating numbers between 0.0 and 1.0 : If you can publish it to a topic you might get what you want.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2016-03-18 02:10:00 -0500

Seen: 437 times

Last updated: Mar 18 '16