Imap is a tool for visualize the hd-map. This project was inspired by Apollo.
data // hd-map dir
main.py // main process
map.py // hd-map struct
editor.py // user interaction
There are 2 ways to install imap.
- Install matplotlib and protobuf.
pip install -U matplotlib
pip install protobuf
- Or you can install conda first, then install protobuf. Use
conda install protobuf
to install will fail, I haven't found the reason yet. Replace with the following command will work.
pip install protobuf
After the installation is complete, you can view the map with the following command.
python main.py -m data/borregas_ave.txt
The following is the display of the hd-map in data\borregas_ave.txt
.You can click on the lane you want to display more detail info, which will display the current lane's id, as well as the predecessor and successor lane's id in the upper left corner.
- add argparse.ArgumentParser
- show map in more details (like layers, styles) // now
- select lane to convert color