Metadata-Version: 2.1
Name: imap_test
Version: 0.1.3
Summary: Apollo map and Opendrive map converter
Home-page: https://github.com/Jh271441/imap_test
Author: JunhaoChen
Author-email: 609752056@qq.com
Project-URL: Bug Tracker, https://github.com/Jh271441/imap_test/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: protobuf<=3.19.4
Requires-Dist: matplotlib
Requires-Dist: pyproj


# imap_test

## Introduction
This is a tool to convert Opendrive to Apollo base map, which is modified from
[apollo's imap tool](https://github.com/daohu527/imap), 
and supports generating adjacent reverse lanes of different roads.

## Quick Start
To generate Apollo base map from Opendrive file, you can run the following command:
```bash
# Method 1 [Recommended]
pip install imap_test
imap -f -i imap/data/town.xodr -o imap/data/base_map.txt
# Method 2
python3 imap/main.py -f -i imap/data/town.xodr -o imap/data/base_map.txt
# Method 3
python3 setup.py develop
imap -f -i imap/data/town.xodr -o imap/data/base_map.txt
```

If you want to generate adjacent reverse lanes for each lane, you can run the following command:
```bash
imap -f -i imap/data/town.xodr -o imap/data/base_map.txt -r
```
The `-r` option is used to generate adjacent reverse lanes.

For visualization, you can use the following command:
```bash
imap -m imap/data/apollo_map.txt
```
