Skip to main content

Extends Lanelet2 maps with empty BSSD structure and derive behavioral demands.

Project description

Framework for the Automated Generation of the BSSD Extension for Lanelet2 Maps

This framework generates the BSSD extension for Lanelet2 maps. Behavior spaces are therefore mapped on lanelets. For each lanelet of a map that can be reached by a motorized vehicle a behavior space is created and some properties of its behavior attributes are already derived.

Requirements

  • Python (implemented with 3.8)
  • Lanelet2
  • packages
    • numpy >= 1.22.3,
    • osmium >= 3.2.0,
    • bssd-core >= 0.1.0,

Installation

After installing lanelet2 (See the provided guide for help) you can install the lanelet2-bssd-converter either using pip or manually from the source code.

Using pip

pip install lanelet2-bssd-converter

Manual installation

  1. Go to the directory of your choice and clone the repository (with HTTPS or SSH)

    • HTTPS:

        git clone https://gitlab.com/tuda-fzd/scenery-representations-and-maps/lanelet2-bssd-converter.git
      
    • SSH:

      git clone git@gitlab.com:tuda-fzd/scenery-representations-and-maps/lanelet2-bssd-converter.git
      
  2. In the same terminal, go into the directory lanelet2_bssd_converter with

    cd lanelet2_bssd_converter
    
  3. Install package and dependencies by invoking the following in the same terminal

    pip install -e .
    

(Create & activate a virtual environment if you want to install the tool inside a virtual environment)

Usage

  1. Get the path to the Lanelet2 map that you wish to derive the BSSD extension for.
  2. To run the converter, use the command:

    Note: You need to replace </path/to/Lanelet2/map> in the following command with the actual path to the targeted map file.

    lanelet2-bssd-converter -m </path/to/Lanelet2/map>
    
  3. The tool will automatically execute and show some information about the current status in the terminal.
  4. After successful execution, the modified Lanelet2 map will be stored in the same directory as the original map with "_BSSD" at the end of the filename.
  5. Furthermore, a derivation-log-file is saved into the same directory.

Note: use lanelet2-bssd-converter -h to see all the available options for the tool.

Architecture

To get an overview of how this framework is build, read this.

Tests

To run the tests that are included with pytest, open a terminal in the directory in which the repository is installed and invoke

pytest test

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

lanelet2_bssd_converter-0.9.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

lanelet2_bssd_converter-0.9.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file lanelet2_bssd_converter-0.9.1.tar.gz.

File metadata

File hashes

Hashes for lanelet2_bssd_converter-0.9.1.tar.gz
Algorithm Hash digest
SHA256 c809fac62953a0f43529055758fe5176042a6f3e30af2dd4e475281a9de9b3d3
MD5 5ccf1eaae6f19c5c6bb55e172c7d5f63
BLAKE2b-256 7129b0e0c301fbfe30b42992d51056e2f436dbb2b6fe6b89b54d0846aa476674

See more details on using hashes here.

File details

Details for the file lanelet2_bssd_converter-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lanelet2_bssd_converter-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6333f2f6900b206827faa8d0c3e857687d97abda509370de0bf30774e56c76d9
MD5 dea444f55828e9408981ee01132e4b07
BLAKE2b-256 8e1905b186b5d4944c0dfed9d76dd55ca0acd10a0519416128b790cec7cfc099

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