Skip to main content

Python simulation of a driving challange. Compatible with the Gymnasium API standard.

Project description

ProcGrid Traffic Gym (PGTG)

ProcGrid Traffic Gym (PGTG) is a driving simulation on a grid with procedural generated maps and traffic. It is fully compatible with the Gymnasium API standard.

Getting Started

Installation

PGTG is available on PyPi and can be installed with all major package managers:

pip install pgtg

Usage

The easiest way to use PGTG is to create the environment with gymnasium:

import pgtg
env = gymnasium.make("pgtg-v2")

The package relies on import side-effects to register the environment name so, even though the package is never explicitly used, its import is necessary to access the environment.

The environment constructor can also be used directly:

from pgtg import PGTGEnv
env = PGTGEnv()

Documentation

  1. Getting Started
  2. The Environment
  3. Customizing PGTG
  4. Version History

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgtg-0.5.0.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

pgtg-0.5.0-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file pgtg-0.5.0.tar.gz.

File metadata

  • Download URL: pgtg-0.5.0.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.5 Windows/10

File hashes

Hashes for pgtg-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e8426969aacf91deae3f834f7790aaef039a1ec4b975b4279c3be2a0b1cd2e83
MD5 b1404489448967450ce1156ca39d0571
BLAKE2b-256 af8245dd02b98e3439229f24fe5b48556de44f4545b07ab8f65e40eb6da2a75a

See more details on using hashes here.

File details

Details for the file pgtg-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pgtg-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 59.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.5 Windows/10

File hashes

Hashes for pgtg-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88fcef38a10c8e5a953a0896c405f59262c9c8a776c60830ef41f9065cd3a9b0
MD5 f0652b242056ff66d486fa4dc87aabd1
BLAKE2b-256 299f63d4ba108a797335bdfb29a197eb08d8dd1ab1ae63da7756fa8dbd119c9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page