Additional supplement functions to CommonRoad
Project description
CommonRoad Helper Functions
Installation as package
Install this package with the following command:
pip install commonroad-helper-functions
CommonRoad Scenarios
In order to test the provided functions, download the scenarios by cloning the commonroad-scenarios repository:
git clone https://gitlab.lrz.de/tum-cps/commonroad-scenarios.git
Make sure to place the folder on the same directory level as this repository:
|
|-- commonroad_helper_functions (This repository)
|-- commonroad_scenarios
|
Functionalities
Sensor Occlusion Model
As part of this repository a sensor model is implemented. Based on the position of an ego vehicle, the visible area is determined and all dynamic objects within this area are returned. Occlusions by dynamic objects can be taken into account, as well as by the road geometry. The two examples show the visible area in green. In contrast to the left, the right video uses a wall buffer of 5m. This means that we assume a buffer of 5m around the lane geometry that can be seen through.
A dynamic objects is considered as visible as soon as any part of it can be physically seen from the ego position.
Deployment
- Import sensor model function
from commonroad_helper_functions.sensor_model import get_visible_objects
- Call function
visible_object_ids, visible_area = get_visible_objects(scenario, time_step, ego_pos)
Optional Arguments
sensor_radius
: Float number that defines the sensor radius in meterocclusion
: True if occlusions by dynamic objects should be consideredwall_buffer
: Float number that defines the wall buffer in meter (see example above)
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 commonroad_helper_functions-1.0.0.tar.gz
.
File metadata
- Download URL: commonroad_helper_functions-1.0.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f633b5590795379882095647e1e37f43c88d78f8cf292e717a8e7888030a595d |
|
MD5 | dcbafdccbe763c65096f44c3f1e2e78c |
|
BLAKE2b-256 | 6f1e835c7e5e23cdfc31fc847243c98d6bafc76e43520c4a309546a9fe29174b |
File details
Details for the file commonroad_helper_functions-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: commonroad_helper_functions-1.0.0-py2-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09addc99632b2a06f3f9bcbdba52e3e7f1af134c5e8d77dab6699352c096df2b |
|
MD5 | 808fca41476a0a28322836f62029b20c |
|
BLAKE2b-256 | a9fa85e4d6e3323e288a996390b0cd944dbe00ec803f8a3697da239b0afc2f9b |