Skip to main content

Apollo map and Opendrive map converter

Project description

imap_test

Introduction

This is a tool to convert Opendrive to Apollo base map, which is modified from apollo's imap tool, 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:

# 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

New Features

v0.1.3

If you want to generate adjacent reverse lanes for each lane, you can run the following command:

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:

imap -m imap/data/apollo_map.txt

v0.1.4

For global speed limit, you can use the following command:

imap -f -i imap/data/town.xodr -o imap/data/base_map.txt -sl 7.0

The -sl option is used to set the global speed limit, which is followed by a float number. Here, the global speed limit is set to 7.0 m/s.

v0.1.5

For adding additional junction polygon points, you can use the following command:

-f -i imap/data/nansha_map_normal.xodr -o imap/data/base_map.txt -r -sl 7.0 -a 96 98.0 97.99999999999997 -a 593 618.0 98.0

The -a option is used to add additional junction polygon points, which is followed by three float numbers, (junction_id, x, y). Here, you will see log:

Adding point (98.0, 97.99999999999997) to junction 96
Adding point (618.0, 98.0) to junction 593

fix

when converting reverse map, left/right most boundary may not be accurate, so add -rb command to fix it:

imap -f -i imap/data/town.xodr -o imap/data/base_map.txt -r -rb

v0.1.6

For adding additional junction lane forward neighbors, you can use the following command:

-f -i imap/data/nansha_map_normal.xodr -o imap/data/base_map.txt -e

The -e option is used to add additional junction lane forward neighbors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imap_test-0.1.6.tar.gz (33.3 kB view details)

Uploaded Source

File details

Details for the file imap_test-0.1.6.tar.gz.

File metadata

  • Download URL: imap_test-0.1.6.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.19

File hashes

Hashes for imap_test-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f75ca5a9aa94deed716fb261beaec23137fe04f274224288e57efa327e04d467
MD5 bb13b98597004a724119059081bfba46
BLAKE2b-256 830242aabc2d7a82345f2832725bce7597baf95eeb4660fc5abc4af8901697a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page