diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4218177..b90009e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,7 @@ repos: - id: pretty-format-json args: [--autofix] - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.5.1 hooks: diff --git a/README.md b/README.md index 1afddac..778aef4 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,36 @@ -[](https://travis-ci.com/alan-turing-institute/bluebird) +[](https://travis-ci.com/project-bluebird/bluebird)  - +  [](https://github.com/pre-commit/pre-commit) -Active develoment moved under [Project BlueBird](https://github.com/project-bluebird). - # BlueBird -BlueBird provides a common [Flask](https://github.com/pallets/flask)-based API to multiple air traffic simulators. In addition to basic communication, it also includes features such as state caching, performance metrics (via [Aviary](https://github.com/alan-turing-institute/aviary)), and logging of scenario data. The main purpose of BlueBird is to provide a common interface to ease the research & development of AI for air traffic control. +BlueBird provides a common [Flask](https://github.com/pallets/flask)-based API to multiple air traffic simulators. In addition to basic communication, it also includes features such as state caching, performance metrics (via [Aviary](https://github.com/project-bluebird/aviary)), and logging of scenario data. The main purpose of BlueBird is to provide a common interface to ease the research & development of AI for air traffic control. + +The currently supported open-source simulator is [BlueSky](https://github.com/project-bluebird/bluesky). + +## Quickstart -The currently supported open-source simulator is [BlueSky](https://github.com/alan-turing-institute/bluesky). +To run Bluebird with Bluesky as the simulator, the easiest method is to run both in Docker using instructions from [the Simurgh repo](https://github.com/project-bluebird/simurgh). The repo also contains a Jupyter notebook with example usage. ## Usage +### Pre-requisites + +- python 3.7 +- virtualenv + ### Running locally -### Pre-requisites -* python 3.7 -* virtualenv +#### Full example with BlueSky simulator To run Bluebird with BlueSky from source, first clone both repos. ```bash -git clone https://github.com/alan-turing-institute/bluesky.git -git clone https://github.com/alan-turing-institute/bluebird.git +git clone https://github.com/project-bluebird/bluesky.git +git clone https://github.com/project-bluebird/bluebird.git ``` Open two terminals. In the first one, install and run BlueSky: @@ -51,19 +56,16 @@ cd bluebird source venv/bin/activate python ./run.py ``` + Bluebird should now be up and running, and listening for API requests on http://0.0.0.0:5001/. To verify it's working, navigate to http://0.0.0.0:5001/api/v2/siminfo. This simple GET request returns a JSON Object containing information about the running simulator (BlueSky). You can then try out the other [API endpoints](#api-endpoints). -To run and example script such as that from the [simurgh examples directory](https://github.com/project-bluebird/simurgh/tree/master/examples) open a third terminal window and navigate to the directory +Note that BlueBird can be run with the following options: + ```bash -$ cd ~/simurgh/ -$ jupyter lab examples/Example-pipeline.ipynb +python ./run.py [--sim-host=
] [--sim-mode=