The rviz plugin to modify ADAS map (AISAN format) with Rviz, written in c++, for human beings all over the world. Mainly for Autoware.
create catkin_ws
cd /path/to/anydir
mkdir -p catkin_ws/src
cd /catkin_ws/src
catkin_init_workspace
download and build package
cd /catkin_ws/src
git clone https://github.com/kuriatsu/rviz_hdmap_editor.git rviz_hdmap_editor
cd ../
catkin_make
Download example (optional) from here
The sample map is very huge, I recommend to use more lighter map.
The indention code of the sample is CRLF, but c++ only support LF. Change character code by (you may need to install nkf by sudo apt install nkf
)
nkf -Lu --overwrite data/map/vector_map/*.csv
start rviz
source /catkin_ws/devel/setup.bash
roscore &
rviz
Load HDmap and pointclond map and publish /map tf or without them like below
rosrun tf static_transform_publisher 0 0 0 0 0 0 /map /tf 100
Change current frame to /map in global option
Add panel
Show InteractiveMarker and Marker.
Push ...
button in the panel and Select HDMap. point.csv, line.csv, vector.csv, and dtlane.csv are necessary.
Push OK
Click checkbox which you want to edit. (fig shows when you click node
)
The coordinate of the sample map is very far from origin (-15811.335, -85688.332) Please move view point.
Edit points.
Push Save to save your modification.
Maintain README.md Not support adding element to the map. Supports only editing. It's hard to edit along z axis. Need to be updated.