ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to find the number of Occupied grids in RTAB-Map global map?

asked 2020-07-03 08:48:28 -0500

MalarJN gravatar image

Is there a way to get the total number of grids and the number of occupied grids from the final global map in RTAB-Map? In the RTAB-Map code there are variables that can list these numbers for each local map, however I need these numbers for the final global map.

PS: I am using ROS Kinetic on Ubuntu 16.04 VM. RTAB-Map version: 0.19.6

Best regards, Malar.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-10 06:57:07 -0500

matlabbe gravatar image

If you subscribe to /rtabmap/grid message, you could count each cell of each type directly.

edit flag offensive delete link more

Comments

Thank you @matlabbe

MalarJN gravatar image MalarJN  ( 2020-07-12 08:34:14 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-03 08:48:28 -0500

Seen: 95 times

Last updated: Jul 10 '20