Ask Your Question

Google Cartographer 3D map for localization

asked 2019-06-12 07:18:58 -0500

zeynep gravatar image

updated 2019-06-14 02:18:11 -0500

Hello, I want to use google cartographer 3d pure localization in my project. I have Velodyne VLP-16 LIDAR. First I will create a 3D Map for localization. So cartographer will use this pbstream file for localization.

In 3D, cartographer does not publish a 2D occupancy grid map so i will create 2D map with slam-gmapping for ROS navigation Stack. I plan to use cartographer only for localization instead of AMCL.

Localization and Navigation will be made on different maps. It is a problem.

My question is ; how I can make Cartograpger 3D localization and ROS Navigation Stack work together?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-15 13:17:28 -0500

JustinBlack02 gravatar image

You should use pbstream_map_publisher and/or occupancy_grid_node to create the occupancy grid. If you are running pure localization then your maps will be the same since they will both be generated from the same pbstream.

edit flag offensive delete link more


Thanks for your reply but accroding to it is not a 2D Occupancy Grid Map that ROS Navigation Stack can use, it is a X-ray map . According to damonkohler answer, they include all range data projected into a 2D plane. X-rays are a 2D representation of vertical density that's useful for humans, but probably not for robots. So it is useless for Navigation Stack.

zeynep gravatar imagezeynep ( 2019-06-15 14:17:21 -0500 )edit

Your entire problem is self inflicted. You localize in 3D and navigate in 2D. Why don't you make your dimensions match? If you navigate in 2D then localize in 2D and use the occupancy grids. If you really want to localize in 3D then you should query the submaps for their point clouds, convert those to e.g. octomaps for 3d navigation or slice along the z axis in the domain your robot will navigate and project the resulting cloud down to 2d to convert that to an occupancy grid.

JustinBlack02 gravatar imageJustinBlack02 ( 2019-06-15 15:16:08 -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: 2019-06-12 07:18:58 -0500

Seen: 37 times

Last updated: 12 hours ago