zgoddard3 / jsbsim-gym

A Gym environment for navigation with an F-16 model simulated in JSBSim.
30 stars 6 forks source link
gym reinforcement-learning

JSBSim Gym Environment

image

Installation

Required libraries are provided in the requirements.txt and are tested for Python 3.9.7.

Usage

You can train a Soft Actor-Critic (SAC) agent on the environment by simply running:

python train.py

Once the agent is trained, you can watch it fly to a random goal using:

python test.py

A pretrained agent can also be downloaded here to skip the training step.

Important Files

The main files defining the environment and feature transformation are jsbsim_gym/jsbsim_gym.py and jsbsim_gym/features.py. The files under jsbsim_gym/visualization are auxiliary files for rendering the environment.