Ask Your Question
0

Is there any way to find how much of the space if free/occupied/unmpapped?

asked 2020-05-29 09:50:41 -0500

alice-st gravatar image

I am using eth-asl nbv planner for mapping, and I was wondering if there is any way to find how much of the space is occupied, free and unmapped at the end of the simulation. Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-29 13:53:22 -0500

TharushiDeSilva gravatar image

updated 2020-05-29 14:01:59 -0500

I am not sure if you want to evaluate your 2D navigation map or the 3D Octomap. But in either case you can write a node to subscribe to the map message.

since you have access to the mapping environment (real or simulated), you can measure its volume/area. I refer this as full.

By subscribing to the map message you can read which (2D/3D) cells are occupied, and which cells are free. You can find out each cell's size and calculate the area/volume. Sum these areas/volumes separately. I label them as occupied, and free.

unmapped = full - occupied - free

(Octomap marks unknown cells too, but they don't cover the full area of the map if you don't fully explore. you can use this if it fits your requirement)

Octomap's 3D map topics are: /octomap_full, /octomap_binary , and 2D ground map topic is: /map

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

Stats

Asked: 2020-05-29 09:50:41 -0500

Seen: 150 times

Last updated: May 29 '20