Skip to main content

dg-commons (Driving Games common tools)

CircleCI codecov PyPI version PyPI - Downloads Code style: black pre-commit

This package contains common tools that ease the development and quick prototyping of autonomous vehicles with a focus on multi-agent planning and decision-making.

Few Highlights

solutions-multilaneint5psets-solutions-solver2puresecuritymNEfact2noextra-joint-joint-0

Multi-agent simulation

collision_gif

Collision resolution

ezgif com-gif-maker (1) Probabilistic sensors

Simulator

The simulator builds on a clear distinction between the concept of an "agent" and its corresponding physical "model".

An agent receives observations and returns commands to the simulator. A model instead represents the physical instance of the agent in the simulation. The received commands from the agent are used to update its state according to the multi-agent simulation.

Collision resolution

Collision detection is performed at each step of the physical simulation, typically higher rate than the agents' updates. The framework provides also a basic collision resolution subroutine for the models. This is based on the impulse response technique among rigid bodies used in game engines. More references are provided in the corresponding location in the docs.

Commonroad integration

Most of the scenario tools natively integrate with the Commonroad project. Few scenarios used mainly for testing are available in the scenarios folder. For more scenarios consider cloning the Commonroad scenarios repository. For internal use (private) consider also dg-scenarios.

Installation

The package is distributed on PyPI. You can simply install it via

pip install dg-commons

to install also the developer tools use pip install dg-commons["all"].

Pre-commit hook (for developers)

Install pre-commit with

pip install pre-commit
pre-commit install

Run pre-commit with

pre-commit run --all-files

Compatibility

From version 0.30 onwards the package is tested against python 3.9, 3.10, 3.11. It might work also for other versions, but it is not tested.

Publications

The tools contained in this package have contributed to the following publications:

Use and contributions

If you find some of the tools provided in this repository useful, consider citing it in your research via the provided github citation. If you want to contribute with new functionalities or need help in using the provided tools consider please feel free to open an issue.

Release files for dg-commons 0.0.47

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dg-commons 0.0.47
File Size Uploaded
dg_commons-0.0.47.tar.gz 87.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dg-commons 0.0.47
File Interpreter ABI Platform
dg_commons-0.0.47-py3-none-any.whl Python 3 none any Details

Total release size: 218.2 kB

Release files / dg_commons-0.0.47.tar.gz

Download URL dg_commons-0.0.47.tar.gz
Size 87.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40f7edb2362609f1633a0aee029822f0bbe02156d6a8fefa4da87bc317a6c804
BLAKE2b-256 checksum
How to use checksums
8aff1be10c00d13414337cae744102e850c64e7e7ea9f4c0f8e9d90b4824378f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release files / dg_commons-0.0.47-py3-none-any.whl

Download URL dg_commons-0.0.47-py3-none-any.whl
Size 130.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a6a072d6c229ad15a273c5e02c67e29aba5d5ec07c70150629c1055126bfc2e
BLAKE2b-256 checksum
How to use checksums
b2d998169e2fe6f68c9438f3cf3cbcc7aacf7cfb46a5a612b30231ccae57c1e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release history Release notifications | RSS feed

This release

0.0.47 This release

2 release files

0.0.46

2 release files

0.0.45

1 release file

0.0.44

1 release file

0.0.43

1 release file

0.0.42

1 release file

0.0.41

1 release file

0.0.40

1 release file

0.0.39

1 release file

0.0.38

1 release file

0.0.37

1 release file

0.0.35

1 release file

0.0.34

1 release file

0.0.33

1 release file

0.0.32

1 release file

0.0.31

1 release file

0.0.30

1 release file

0.0.29

1 release file

0.0.28

1 release file

0.0.27

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.24

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.8

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page