Skip to main content

Gymnasium Compatible Safe RL Environments

Project description

SafeGym

Implementation of satellite environments and other environments to explore SafeRL

SafeGym

SafeGym is a Gymnasium environment coupled with tools aimed at facilitating Safe Reinforcement Learning (SafeRL) research and development.

Features

  • Customizable Environment: Create a variety of satellite chasing scenarios with customizable starting states and noise.
  • Underactuated and Fully Actuated Dynamics: Simulate real-world control dynamics with options for both underactuated and fully actuated control systems.
  • Reward Shaping: Built-in reward shaping functionality to guide the learning process towards safe and effective solutions.
  • Truncation and Termination: Control the episode flow with truncation and termination conditions to manage the agent's learning experience.
  • Visualization Tools: Render the environment and visualize the agent's interactions and performance over time.
  • Testing Utilities: Validate the environment and control algorithms with a set of provided testing functions.

Getting Started

Clone the repository to your local machine:

git clone https://github.com/spbisc97/SafeGym.git
cd SafeGym

Ensure you have the necessary dependencies installed. The primary dependencies include:

  • gymnasium
  • numpy
  • matplotlib

Usage

Install

pip install -e .

Run a simple experiment

import safegym
import gymnasium as gym

env = gym.make('Satellite-SE',render_mode="human")
observation,info = env.reset()
DONE=False

while not DONE
    action = env.action_space.sample()
    observation, reward, term, trunc, info = env.step(action)
    DONE = term or trunc

env.close()

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

safegym-0.12.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

safegym-0.12-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file safegym-0.12.tar.gz.

File metadata

  • Download URL: safegym-0.12.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for safegym-0.12.tar.gz
Algorithm Hash digest
SHA256 6d42cdaabdbefc047adb37c7f6cfcdfb4638543bde394b2b1b3edb23c48afc2b
MD5 a50fb7f1bb30891fa1c6c9f4560252b5
BLAKE2b-256 af91580fcb75f07b4bf3be6d6c6b21d3877709f3a21ecf7bbd6b3237ad11681a

See more details on using hashes here.

File details

Details for the file safegym-0.12-py3-none-any.whl.

File metadata

  • Download URL: safegym-0.12-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for safegym-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 84474ea5a8801cd0b2cffa8f8fcd4f73f1160ba70527ffd016ca628224a6b4c9
MD5 3dc8185adc2da1051f2a0ee23a73cd6d
BLAKE2b-256 d75420f7798b0851f315c729a7780088b360d9f46f39de7cc556a075066722a7

See more details on using hashes here.

Supported by

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