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.2.tar.gz (33.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: imap_test-0.1.6.2.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for imap_test-0.1.6.2.tar.gz
Algorithm Hash digest
SHA256 d19828fd234abcf0a8f913ef1c23127641b56316d22dd2bbf72ed5b333fb5372
MD5 7d5df260bdfa5badca81504d561c4fd8
BLAKE2b-256 670bac5b696b9a2e693c0f66cf35860a8cec50bb409d0efcf02589c8688aaebc

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