12.3. How to Convert OpenDRIVE Format Maps to Apollo Format Maps?
How can these two map formats be converted to each other?
Maintainer: daohu527@gmail.com
Version: 1.0.0
Date: 05/09/2024
Description:
12.3.1. Answer
Here are the methods for converting between the two map formats.
12.3.1.1. OpenDRIVE to Apollo
You can use the imap tool to convert OpenDRIVE format maps to Apollo format maps.
Install imap
pip3 install imap_box
Convert the format
# data/town.xodr (OpenDRIVE format map)
# data/apollo_map.txt (Apollo format map)
imap -f -i data/town.xodr -o data/apollo_map.txt
12.3.1.2. Apollo to OpenDRIVE
Todo: Currently, there is no corresponding conversion tool.