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

2D PointCloud to Occupancy grid

asked 2018-04-09 05:32:35 -0600

Georgee gravatar image

updated 2018-04-09 05:45:58 -0600

Hi there,

I'm having trouble finding a package that does what I want. I'm using the Intel's Euclid to scan the room and I extract every possible plane with help of the PointCloud Library. I can store those planes for later inspection. What I need to do now is creating an occupancy grid, i.e. a matrix with cells that represent 1cm^2 with the probability of occupancy (0-100) I researched and found the octomap_server and the ethz-asl/grid_map package but I'm not sure they serve my purpose.

Any ideas? Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-09 11:47:52 -0600

Gayan Brahmanage gravatar image

updated 2018-04-09 11:49:17 -0600

You can use Gmapping, It performs SLAM with odometry and 2D laser scanner. It gives the 2D map and entropy as well. You can change the parameters inside the programs or in .yml file.

edit flag offensive delete link more


Inputs for Gmapping are tf (tf/tfMessage) and scan (sensor_msgs/LaserScan), and I would like to use my 2D PointCloud plane. Any alternatives?

Thanks for your help.

Georgee gravatar image Georgee  ( 2018-04-09 11:56:49 -0600 )edit

Not pushing you to use gmapping, but there is something called pointcloud_to_laserscan.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-09 12:49:39 -0600 )edit

Thanks for your answer @gvdhoorn , but it doesn't seem to match what I'm looking for. What I have is a dataset of points that represent a plane (for indoor purposes, to be more precise, e.g a table or a wall) and I need to know how probable it is for the robot to wander through that plane.

Georgee gravatar image Georgee  ( 2018-04-10 02:31:39 -0600 )edit

My comment was in response to your "I have a pointcloud, not a laser scanner" comment earlier.

gvdhoorn gravatar image gvdhoorn  ( 2018-04-10 02:57:04 -0600 )edit

Question Tools



Asked: 2018-04-09 05:32:35 -0600

Seen: 1,412 times

Last updated: Apr 09 '18