Skip to main content

gym-adr

A gym implementation of the environment used for "AI-Driven Risk-Aware Scheduling for Active Debris Removal Missions", a paper published at SPAICE 2024, a European Space Agency conference.

Installation

Create a virtual environment with Python 3.10 and activate it, e.g. with miniconda:

conda create -y -n active_debris_removal python=3.10 && conda activate active_debris_removal

Install gym-adr:

pip install gym-adr

To run the example script, install gym-adr with the additional dependencies:

pip install gym-adr[example]

Quick start

Description

Description

Active Debris Removal environment.

The goal of the agent is to deorbit as many debris as possible given constraints on fuel and time. The agent is an Orbital Transfer Vehicle (OTV).

Action Space

The action space is discrete and consists of n values, n being the number of debris in orbit around the Earth.

Observation Space

The observation space is a (5+2n)-dimensional vector representing the state of the agent:

  • removal_step: refer to the number of debris deorbited by the OTV
  • number_debris_left: refer to the number of debris still in orbits around the Earth
  • current_removing_debris: refer to the current target debris
  • dv_left: refer to the current amount of fuel available to the OTV
  • dt_left: refer to the current amount of time available to the OTV
  • binary_flag_debris_1, ..., binary_flag_debris_n: refer to the state of debris (0 is in orbit, 1 is already deorbited)
  • priority_score_debris_1, ..., priority_score_debris_n: refer to the priority score of debris (1 is not prioritary, 10 is prioritary = with a high chance of collision)

Rewards

The reward is 1 when the OTV deorbit an non-prioritary debris, 10 when it deorbit a prioritary debris, 0 if it doesn't deorbit any debris (no more fuel/time or debris already deorbited).

Starting State

The agent starts at the position of a random debris. This debris is considered deorbited for the rest of the episode.

Episode Termination

The episode terminates when the OTV run out of fuel (or time) or when it chose as target debris a debris that has already been deorbited.

Arguments

  • total_n_debris: (int) The number of total debris in orbit around the Earth. Default is 10.
  • dv_max_per_mission: (int) The total amount of fuel available at the start of the mission. Default is 5.
  • dt_max_per_mission: (int) The initial duration of the mission. Default is 100.
  • random_first_debris: (bool) The debris chosen to initialize the position of the OTV. Default is True.
  • first_debris: (int) If random_first_debris is set to False, the debris chosen to initialize the position of the OTV. Default is None.

Version History

  • v0: Original version

Contribute

Contributions are welcome and greatly appreciated! 🚀

Follow our style

# install pre-commit hooks
pre-commit install

# apply style and linter checks on staged files
pre-commit run --all-files

Citations

@article{2024activedebrisremoval,
    title   = {AI-Driven Risk-Aware Scheduling for Active Debris Removal Missions},
    author  = {Antoine Poupon, Hugo de Rohan Willner, Pierre Nikitits and Adam Abdin},
    year    = {2024},
    archivePrefix={arXiv},
    primaryClass={cs.CV},
    url  = {https://arxiv.org/abs/2409.17012}
}

Metadata

Release files for gym-adr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gym-adr 0.1.0
File Size Uploaded Provenance Actions
gym_adr-0.1.0.tar.gz 6.2 MB Without provenance Details for gym_adr-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-adr 0.1.0
File Interpreter ABI Platform Actions
gym_adr-0.1.0-py3-none-any.whl Python 3 none any Details for gym_adr-0.1.0-py3-none-any.whl

Total release size: 12.5 MB

Release files / gym_adr-0.1.0.tar.gz

Download URL gym_adr-0.1.0.tar.gz
Size 6.2 MB
Tags Source
SHA-256 checksum
How to use checksums
d41221e6dfff2be4dd1eeadd2ab3fb6dae66c37ee59533a9b346e87a25e0a852
BLAKE2b-256 checksum
How to use checksums
a1ae4877103d56ca0cc73af0f0c9543c982bc7dcf11a3fb5d1f721f2b622fb2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.17 Darwin/24.4.0

Release files / gym_adr-0.1.0-py3-none-any.whl

Download URL gym_adr-0.1.0-py3-none-any.whl
Size 6.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2cec046c87a5a986d6f386700366af96d3c21da8793e03f12265e211f0d48558
BLAKE2b-256 checksum
How to use checksums
8f2d1ae3018dfb4f7a934748a3fc7ce5b0d09711b21f599816a7d0fe3abb8f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.17 Darwin/24.4.0

Security for gym-adr 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page