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
-
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
-
-
In the same terminal, go into the directory lanelet2_bssd_converter with
cd lanelet2_bssd_converter
-
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
- Get the path to the Lanelet2 map that you wish to derive the BSSD extension for.
- 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>
- 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 -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
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
File details
Details for the file lanelet2_bssd_converter-0.9.1.tar.gz
.
File metadata
- Download URL: lanelet2_bssd_converter-0.9.1.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c809fac62953a0f43529055758fe5176042a6f3e30af2dd4e475281a9de9b3d3 |
|
MD5 | 5ccf1eaae6f19c5c6bb55e172c7d5f63 |
|
BLAKE2b-256 | 7129b0e0c301fbfe30b42992d51056e2f436dbb2b6fe6b89b54d0846aa476674 |
File details
Details for the file lanelet2_bssd_converter-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: lanelet2_bssd_converter-0.9.1-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6333f2f6900b206827faa8d0c3e857687d97abda509370de0bf30774e56c76d9 |
|
MD5 | dea444f55828e9408981ee01132e4b07 |
|
BLAKE2b-256 | 8e1905b186b5d4944c0dfed9d76dd55ca0acd10a0519416128b790cec7cfc099 |