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:
![]()
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
- Get the path to the Lanelet2 map that you wish to derive the BSSD extension for.
- To run the converter, use the command:
lanelet2-bssd-converter -m </path/to/Lanelet2_map>
- The tool will automatically execute and show some information about the current status in the terminal.
- 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.
- Furthermore, a derivation-log-file is saved into the same directory.
Note: use
lanelet2-bssd-converter -hto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
449f25b7150462477fe5c83cda5c4e8d100f82bcb42dbcab79623339808b2ece
|
|
| MD5 |
16a04a66ee3beee5a09a3830b44eb607
|
|
| BLAKE2b-256 |
952801340d200f999ccefe8f91c95d378cf320514caa102748c6f88857aa055f
|
File details
Details for the file lanelet2_bssd_converter-2025.1-py3-none-any.whl.
File metadata
- Download URL: lanelet2_bssd_converter-2025.1-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ccf1878db0d48bf40fcc0cef28b8a52d51ca29e0f2554b7530eb9bed7de0dd6
|
|
| MD5 |
cff7306df0f969e344aad1dc49faab3b
|
|
| BLAKE2b-256 |
d5b6b98fe70f6dc5c11cfff264740f066a01d47502e4075acc4015e04d7acca4
|