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

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

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.

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

Uploaded Source

File details

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

File metadata

  • Download URL: imap_test-0.1.4.tar.gz
  • Upload date:
  • Size: 32.1 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.4.tar.gz
Algorithm Hash digest
SHA256 eecc8a308b656fcc4f5fc5bcac30e75f5fd343f4214ab6749b662e3b045459c4
MD5 cb1797b0b211def00a7517bd7b9b397f
BLAKE2b-256 90b4d0583678423df717dad3c79fc9ce81c14b485286e305d6a9538957a2ebb0

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