Ask Your Question

Ros Occupancy Grids

asked 2015-08-01 10:52:02 -0500

fatstudentsweating gravatar image

Hello guys,

Me and a Partner of mine are working on a Turtlebot Project at the Karlsruhe College in Germany.

Our projects aims to make the Turtlebot decide whether it can, for example, drive under a table, or not. We thought that the Turtlebot would anyhow measure the height of the obstacle in front of him and then decide (it has a XTion Pro Live Camera). During this, the Turtlebot doesn't have to move (rotation may be allowed).

Our idea was to record a Pointcloud (we already tried out Rtabmap, which did pretty good) and export the data (.pcd / .ply) for further use. We didn't know how to proceed after this, since none of us is a real computer expert (we both study Mechatronics). We also thought we would have to include some libraries into a Cpp file (like the Pcl Library), but we also found the Octomap library and Gridmap (whose description seem pretty useful to us).

We're kinda lost. If you know any detailed way or package to build that function, please let us know !

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-08-03 09:51:18 -0500

I think you were in the correct path. I would use the octomap_server and, if you appropriately set the filters of the octomap (which can be done in the launch file), you can filter out those obstacles which are higher than the robot.

Other option is to use the pass through filter of the PCL, but to use the octomap server is a much easier option.

edit flag offensive delete link more


Hello Javi,

thank you very much. I was browsing the documentation of the Octomap server, as you said i could use ~pointcloud_[min|max]_z (float) or ~occupancy_[min|max]_z (float) to threshold the height. But how can i implement something like : if (is there anything straight ahead at 80 cm ?){..}?

fatstudentsweating gravatar image fatstudentsweating  ( 2015-08-03 21:29:54 -0500 )edit

I would open a new question for that, as the solution it is not that easy. Please accept and/or upvote the answer if it was useful for you.

Javier V. Gómez gravatar image Javier V. Gómez  ( 2015-08-04 02:40:19 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2015-08-01 10:52:02 -0500

Seen: 1,073 times

Last updated: Aug 03 '15