Skip to main content

A Unity-based traffic simulation environment for multi-agent reinforcement learning

Project description


layout: default title: "ReplicantDriveSimulation" permalink: /External/

Workflow Status

ReplicantDriveSim Library

ReplicantDriveSim is an advanced and fully integrated traffic simulation library designed to bridge Unity, Python, and C++ environments, providing seamless support for autonomous driving research and multi-agent reinforcement learning (RL).

Traffic Simulation Documentation

ReplicantDriveSim

Features and Capabilities

1. Pip Installable

The Unity-based traffic simulation is now registered with PyPi, making it easily installable via pip:

pip install replicantdrivesim

This command simplifies the setup process by downloading and installing the package along with its dependencies. Once installed, you can quickly integrate it into your projects by importing the library in your Python scripts.

import replicantdrivesim

For more detailed usage instructions, please refer to the documentation in the repository.

2. Automated Release Pipeline

The project is equipped with a robust continuous integration and deployment (CI/CD) pipeline that:

  • Publishes releases to:
    • DockerHub
    • GitHub Container Registry
    • PyPi
  • Generates comprehensive documentation on:
    • Read the Docs
    • GitHub Pages
    • Doxygen for C++ code
  • Automatically rebuilds and updates the Unity simulation and Python package when updates are made to:
    • C++ code
    • Unity environment
    • Python interface

3. Multi-Agent Reinforcement Learning with Ray RLlib

  • The library supports Ray's RLlib, enabling multi-agent training for autonomous driving scenarios.
  • With a simple import, you can hand over the environment to Ray for scalable and efficient agent training.
  • This feature is designed for large-scale experiments, leveraging Ray's distributed architecture.
  • Hydra Configuration: Managed via Hydra, supporting powerful command-line overrides and multi-run experiments (e.g., seeding sweeps):
    python examples/trainer.py --multirun seed=42,43
    

4. Comprehensive Documentation

Doxygen-generated documentation is available for the C++ code, and additional project documentation is published on Read the Docs and GitHub Pages, ensuring developers have clear and detailed guidance for integration and usage.

  • Doxygen-generated documentation is available for the C++ code.
  • Additional project documentation is published on:
    • Read the Docs
    • GitHub Pages
  • This ensures developers have clear and detailed guidance for integration and usage.

5. Versioning and Release Management

The pipeline handles release notes generation and tags releases automatically, providing a fully managed versioning system for developers to track changes and improvements.

  • The pipeline handles automatic release note generation and tagging of releases.
  • This ensures a fully managed versioning system, allowing developers to track changes and improvements seamlessly.

With ReplicantDriveSim, you can simulate complex traffic environments, leverage reinforcement learning for training autonomous agents, and benefit from a unified system that integrates C++, Unity, and Python, all within a streamlined workflow.

Traffic Simulation Documentation - Further Reading

For more detailed information about the ReplicantDriveSim traffic simulation, including the AI components and additional developer resources, please refer to the following documentation sources:

  • AI Components and Reinforcement Learning: This page covers the artificial intelligence aspects of the simulation, including reinforcement learning, imitation learning, and how these are implemented within the environment.
  • GitHub Repository: The official GitHub repository where the Unity codebase and related assets for ReplicantDriveSim are hosted. Developers can explore the full source code, contribute to the project, and access the latest updates.
  • Read the Docs: Comprehensive documentation covering various aspects of the simulation, including installation, setup, API references, and examples.

These resources will provide deeper insights and technical details to aid in development and understanding of the traffic simulation system.

Resources and Installation

  • PyPI Project: Python package for the Unity traffic simulation with a C++ backend, providing high-performance tools for autonomous driving research and testing.
  • DockerHub Registry: Pre-built Docker images for seamless deployment of the ReplicantDriveSim environment across various platforms (currently set to be a private repository).

Docker Image

For a pre-configured environment with all dependencies, use our Docker image:

docker pull chrisjcc/replicantdrivesim:latest
docker run -it chrisjcc/replicantdrivesim:latest

System Requirements

Unity Version

  • Unity 6 (6000.0.30f1 or later)
  • ML-Agents Package: 4.0.0
  • Unity AI Inference Engine: 2.2.1

Python Requirements

  • Python: 3.10.1 - 3.10.12
  • Ray RLlib: 2.31.0
  • ML-Agents: 1.1.0
  • Gymnasium: 0.26.3
  • NumPy: 1.23.5
  • PyTorch: 2.1.1 or later
  • Protocol Buffers: 3.20.3
  • gRPC: 1.53.2

For a complete list of dependencies, see environment.yml or setup.cfg.

License

ReplicantDriveSim is licensed under the MIT License. See the LICENSE file for more details.

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

replicantdrivesim-0.7.2.tar.gz (188.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

replicantdrivesim-0.7.2-py3-none-any.whl (187.1 kB view details)

Uploaded Python 3

File details

Details for the file replicantdrivesim-0.7.2.tar.gz.

File metadata

  • Download URL: replicantdrivesim-0.7.2.tar.gz
  • Upload date:
  • Size: 188.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for replicantdrivesim-0.7.2.tar.gz
Algorithm Hash digest
SHA256 92181a2d7a0a2a96151d8abec59cb449faba4cd1d9f5f4b638ff64b2db831bdb
MD5 4aac56e5c80edbedefa7b5d336b926de
BLAKE2b-256 b8934026c4bd8c68140103968248ae9d5650d05d2f0275ec61bba6039e268e4c

See more details on using hashes here.

File details

Details for the file replicantdrivesim-0.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for replicantdrivesim-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18ff323101fc37e1812bb8af979a63f7449ae405dc09536e103e0d450dcc9fc0
MD5 e39ec2a46286d021b41b99729fe9d16b
BLAKE2b-256 bc707931dca7efd427a7b29a269e7fed467c96ba50e4b697224e3dab29be8caa

See more details on using hashes here.

Supported by

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