Ask Your Question

How to build an occupancy grid from pointcloud data

asked 2021-01-24 02:01:21 -0500

SamFlynn gravatar image

updated 2021-01-24 02:02:00 -0500

I need to make an occupancy grid map from the cloud_map[cloud_map (sensor_msgs/PointCloud2) -> Map of 3D point cloud generated using a kinect sensor] topic provided by rtabmap_ros package. In my case the occupancy grid provided by rtabmap was not valid for my purpose. I am trying to do outdoor navigation and the terrain is very uneven. So all the cells are shown as occupied by the in the occupancy grid provided by rtabmap.

So I want to build a occupancy grid from the gradient of the pointcloud rather than height. The area to navigate in has -2m to 4m variation in height with low gradient and high gradient areas.My robot can drive in the low gradient regions. Is there any ros-melodic package which does this out of the box? Or do I need to build a custom package?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-01-24 04:32:36 -0500

smahadwale gravatar image

Refer this link You can use either octomap through sensor_3d.yaml (sensor config yaml file in generated package of moveit) or you can use octomap server in launch file w.r.t. fixed frame. If your bot is fixedgo for octomap plugin through sensor_3d.yaml . Otherwise go for octomap server. Octomap will be published as marker array. Refer this also

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: 2021-01-24 02:01:21 -0500

Seen: 1,461 times

Last updated: Jan 24 '21