Skip to main content

Tool for the automated generation of the BSSD extension based on Lanelet2 maps

Project description

Lanelet2 BSSD Converter

IMPORTANT NOTE This repository is part of the Behavior-Semantic Scenery Description (BSSD) framework. Check out our BSSD documentation and overview repository in your git of choice: GitLab GitHub

This tool 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 if you need help) you can install the Lanelet2 BSSD Converter either using pip or manually from the source code.

Using pip

pip install lanelet2-bssd-converter

This will install the latest version of the Lanelet2 BSSD Converter available in PyPI to your environment.

Manual Installation

Clone the source code to a directory of your choice (path/to/lanelet2-bssd-converter-src/).

If you are using virtual environments, make sure to activate the correct environment to install the library into e.g:

source /<path-to-my-project>/.venv/bin/activate

Install the library:

pip install -e path/to/lanelet2-bssd-converter-src/

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:
    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 tool is built, 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-2025.1.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lanelet2_bssd_converter-2025.1-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lanelet2_bssd_converter-2025.1.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for lanelet2_bssd_converter-2025.1.tar.gz
Algorithm Hash digest
SHA256 449f25b7150462477fe5c83cda5c4e8d100f82bcb42dbcab79623339808b2ece
MD5 16a04a66ee3beee5a09a3830b44eb607
BLAKE2b-256 952801340d200f999ccefe8f91c95d378cf320514caa102748c6f88857aa055f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lanelet2_bssd_converter-2025.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccf1878db0d48bf40fcc0cef28b8a52d51ca29e0f2554b7530eb9bed7de0dd6
MD5 cff7306df0f969e344aad1dc49faab3b
BLAKE2b-256 d5b6b98fe70f6dc5c11cfff264740f066a01d47502e4075acc4015e04d7acca4

See more details on using hashes here.

Supported by

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