Skip to main content

Codebase for for our version of highway-way modified for iPLAN paper

Project description

Heterogeneous Highway-env for iPLAN

Our forked version of highway-env used in our paper:

iPLAN: Intent-Aware Planning in Heterogeneous Traffic via Distributed Multi-Agent Reinforcement Learning

More details could be found in the main page of highway-env and iPLAN.

Installation

pip install HighwayEnv-iPLAN

Major Changes

  • Add two behavior-driven vehicle models, DefensiveVehicle and AggressiveVehicle in vehicle/behavior.py.
  • Add multi-agent support for Highway scenario given in envs/highway_env.py, modify the MultiAgentWrapper in vehicle/common/abstract.py.
  • Add three heterogeneous traffic scenarios, HighwayEnvHetero, HighwayEnvHetero_H and HighwayEnvHetero_VH in envs/highway_env.py, with vehicle ID broadcasting and different behavior-driven vehicles.
  • Add multi-agent support for visualization in Highway scenario that allows a camera following each agent and visualize their surroundings from their respective viewpoints.

Animation

The animation shows 5 such learning agents (Green) with their surroundings from their respective viewpoints. Behavior-driven vehicles in the environment include: Normal (Blue), Aggressive (Purple) and Defensive (Yellow). Vehicles terminate (Red) when colliding with other vehicles.


iPLAN in chaotic (hard) scenario of Heterogeneous Highway (Num of agents succeed: 5, Avg. survival time: 90, Avg. speed: 21.81).

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

Heterogeneous_Highway_Env-0.0.3.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl (397.2 kB view details)

Uploaded Python 3

File details

Details for the file Heterogeneous_Highway_Env-0.0.3.tar.gz.

File metadata

File hashes

Hashes for Heterogeneous_Highway_Env-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6a6a48c6967d97f10b10df638c6c6d2de574cdf29e84525a2d72ccba2ff9b3ee
MD5 e0ab83f50bfa3805058fd9d7f307a19a
BLAKE2b-256 5620b3ea7a410dac7fe4239d6327c779b4eff9c551b2dd3d86a6ed6221e76d7a

See more details on using hashes here.

File details

Details for the file Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f42f34f78dd1459e0bbb20b5b0417a40f733659464463987f022fb0553a3d4
MD5 4fbb7f654f77e5901c8033c699ea97b6
BLAKE2b-256 3722e7b411c9a13fff0dbae215c13e94b7ffc7b9128df8a3f3c958d6c160b4d9

See more details on using hashes here.

Supported by

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