How to align point cloud map and vector map or kml map
Hi all,
I would like to build a vector map (or kml map) to use in Autoware 1.13 + Open Planner 2.0. Currently, I have a opendrive format map (.xodr) and a point cloud map (generated using NDT mapping and I have its origin location lat, lon).
To convert the opendrive format map into vector map (or .kml map for open planner), I followed these steps:
use ASSURE v0.6 tool @Hatem build to convert opendrive map (.xodr) to lanelet2 map (.osm) and Open Planner kml map (.kml). When loading the opendrive map, I choose UTM projection and used the lat, lon from the opendrive geoReference information (in the header of .xodr file). Here noted that this lat, lon is not the same as the point cloud origin map lat, lon (I also tried using the origin lat, lon but the results also not aligned).
use the tool provided by Autoware to convert the lanelet2 map generated in the first step to the vector map. Here I set the lat, lon using the origin of the point cloud map. The detailed command I use is the one in the above tool :
rosrun lanelet_aisan_converter lanelet2aisan _map_file:=<path to="" lanelet="" map=""> _origin_lat:=<latitude of="" origin="" for="" xyz="" projection=""> _origin_lon:=<longitude of="" origin="" for="" xyz="" projection=""> _save_dir:=<optional: path="" to="" save="" dir="">
However, the point cloud map and vector map are not aligned with each other (with offset and also rotation).
Any comments and suggestions are appreciated. Thanks!