An gymnasium environment for air traffic control.
Project description
Bluebird Gymnasium
A suite of gymnasium environments for air traffic control (ATC). The environments are based on bluebird-dt (an ATC simulator).
The environments support research in agent-based learning (e.g. reinforcement learning) for ATC. It supports either single agent or multi-agents scenarios.
Installation
The default installation instructions are based on the use of uv, a package and dependency manager. However, if you want to perform a conda based installation, please visit the alternate installation instructions which contains installation and steps and how to use the package.
Pre-requisites
- UV package and dependency manager. If you do not already have
uvinstalled, follow the instructions on the installation page. We recommend using the official installer option.
Default Installation Instructions
First, download a copy of the BluebirdATC repository. Either clone the repository using git or just download directly from github web. The repository contains both the bluebird-dt (core simulator) and bluebird-gymnasium (a gymnasium wrapper around the core simulator) packages.
For example, use the command below to clone the repository.
git clone https://github.com/project-bluebird/BluebirdATC.git
Then, install the bluebird_gymnasium using uv.
cd BluebirdATC/bluebird-gymnasium
uv sync --no-dev
To contribute to the project's development, use the command below to install bluebird-gymnasium. The development dependencies will be installed together with the core dependencies.
cd BluebirdATC/bluebird-gymnasium
uv sync
Usage
Basic Usage
bluebird-gymnasium currently supports the following environments/airspace: X sector, Y sector, I sector, Xplus sector and Springfield sector.
To run any, the uv or conda environment in which bluebird-gymnasium was installed must be activated.
For uv:
cd BluebirdATC/bluebird-gymnasium
source .venv/bin/activate
Please see alternate basic usage for conda based set up.
To instantiate a X sector environment with the default config, run:
python
>>> import gymnasium as gym
>>> import bluebird_gymnasium
>>> env = gym.make("SectorXEnv-v0")
Development
Contributing
Thank you for your interest in contributing. Please read the contributing guidelines, clone the repository and start development. Open a pull request to submit requested changes to the repository.
Development Dependencies Installation
To install bluebird-gymnasium together with its core and development depedencies, use the command below.
cd BluebirdATC/bluebird-gymnasium/
uv sync
Tests
To run tests, enter the command below in the terminal/console. Note that the command should be run in the repository home directory.
cd BluebirdATC/bluebird-gymnasium/
pytest tests/ -p no:warnings
Documentation
The online documentation for the bluebird_gymnasium package can be found by running the command:
../scripts/docs-serve
from this directory, then navigating a web browser to http://localhost:8010.
Bug Reporting
To report a bug, open an issue in the repository.
Sample RL Agents
A sample agent that takes random actions.
import gymnasium as gym
import bluebird_gymnasium
env = gym.make("SectorXEnv-v0")
obs, info = env.reset()
done = False
while not done:
action = env.action_space.sample()
obs, reward, done, truncated, info = env.step(action)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluebird_gymnasium-0.1.0.tar.gz.
File metadata
- Download URL: bluebird_gymnasium-0.1.0.tar.gz
- Upload date:
- Size: 135.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfb534958830be6ff49129a3314c8b3fa786fa8161cd98b77e86c102a5befb3f
|
|
| MD5 |
ebf2fc1bd5fe7ae36ee21001616a6749
|
|
| BLAKE2b-256 |
e6d91884ea8ac604028d0b2e4528edcd85cac030c89f160d91b6daf319e7ec10
|
File details
Details for the file bluebird_gymnasium-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bluebird_gymnasium-0.1.0-py3-none-any.whl
- Upload date:
- Size: 179.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5670c79f48eca1818e18dc72fd215c4338c42bff6a800965c186c379a4809c7f
|
|
| MD5 |
bcf934772aeb3a054f153c98e85ddbe9
|
|
| BLAKE2b-256 |
2bf04d9de47d30e5c70544eb1c0fe6436963d030da4a9286640985c8926583ea
|