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

Autoware Tools - Vector Map Builder: cannot see point cloud file due to RGB value

asked 2019-07-16 16:00:50 -0500

bcopenha gravatar image

updated 2019-07-18 12:13:08 -0500

Hello all,

I am currently trying to build a vector map using Autoware's Vector Map Builder with a .pcd map created with Autoware's ndt_mapping process in ROS Kinetic Autoware version 1.10 (.pcd map attached). When I load the file in to the Vector Map Builder (found here: https://tools.tier4.jp/vector_map_bui...), the points are black and cannot be distinguished from the background well enough to create a vector map.

When I created the map file with ndt_mapping I used the generic settings and when I tried to edit the RGB value in CloudCompare, the program seems to split it up by RGB value (despite the fact that I changed the value from black to white) - see images at Google drive link below.

Bag file, .pcd map, 2x screenshots of vector map builder: https://drive.google.com/drive/folder...

Black PCD

RGB split PCD

Do I need to do something special during the .pcd file creation step with ndt_mapping? Is there a way to convert the file from black RGB to something lighter in order to use it to create a vector map in Autoware?

Thank you!

edit retag flag offensive close merge delete

Comments

Can you please update your question with the images attached directly to the question?

jayess gravatar image jayess  ( 2019-07-18 11:42:34 -0500 )edit

Sure! (first time didn't want to upload so I went for Google Drive)

bcopenha gravatar image bcopenha  ( 2019-07-18 12:14:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-07-18 11:39:39 -0500

mitsudome-r gravatar image

Current Vector Map Builder seems to have trouble rendering .pcd map in ASCII format, but ndt_mapping exports pcd map in ASCII format. (FYI, you can check it by running $ head -n 11 autoware-190703-2.pcd and you should see DATA ascii in the output.)

In order to convert it to binary format, you can run following commands:

$ sudo apt install pcl-tools 
$ pcl_convert_pcd_ascii_binary autoware-190703-2.pcd bin-autoware-190703-2.pcd 1

Now you should have bin-autoware-190703-2.pcd which is in binary format, and Vector Map Builder should be able to render this pcd with lighter color.

edit flag offensive delete link more

Comments

This worked! Thank you for your help!

Just to put it out there for anyone else needing help on this subject: approximate_ndt_mapping outputs binary files and thus will work in Vector Map Builder out of the box. (This would be more useful if the fix from mitsudome-r wasn't so simple and easy to use!)

bcopenha gravatar image bcopenha  ( 2019-07-18 12:21:59 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-07-16 16:00:50 -0500

Seen: 2,021 times

Last updated: Jul 18 '19