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://git.rwth-aachen.de/fzd/unicar-agil/sonstiges/bssd/lanelet2_bssd_converter.git
-
SSH:
git clone git@git.rwth-aachen.de:fzd/unicar-agil/sonstiges/bssd/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
Hashes for lanelet2_bssd_converter-0.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4da53ecb8fc18ca4da1af61e9aeea1d6c1bbc14798bb7c14f81aa559528c1df |
|
MD5 | 5a3f5edec1ba8b4acc09787cb1230ede |
|
BLAKE2b-256 | b6f1912478ead15c9c364b0e0b5c044bfbec969ceef566d3d0d545cd808fbba9 |
Hashes for lanelet2_bssd_converter-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be48af2b5117b2715bb76115d86aa5aff03c60ac1d7c3c5782c58508b87aa7f |
|
MD5 | b4c270e4105a7c174dfa6f4d27d1e64d |
|
BLAKE2b-256 | 03fcfdee92fa35a49fadf9d7ebd0a635b14e6ba7b1da5b49275ad9f0a6245d27 |