Giter Site home page Giter Site logo

sryu1 / jsbgym Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 4.0 23.56 MB

An JSBSim environment for reinforcement learning, original from https://github.com/Gor-Ren/gym-jsbsim

License: MIT License

Python 100.00%
ai flightgear gymnasium jsbsim ml reinforcement-learning rl

jsbgym's Introduction

sryu1

Hello! ๐Ÿ‘‹ I'm a hobby programmer interested in aviation and artificial intelligence.

GitHub Stats Top Languages

github contribution grid snake animation github contribution grid snake animation

jsbgym's People

Contributors

sryu1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jsbgym's Issues

Multiplayer Flight Gear

I want to open multiple instances on flight gear. For example run code in two windows on flight gear to fly two planes on same machine. when I run your file first time , the flight gear window opens and plane start flying. when I run the file again the new window of flight gear opens and plane is on ground not flying. Then I change the port number in your visualiser.py file it did not work because it work only on 5550 if you change the port then plane is grounded not fly. PLEASE HELP ME IN THIS CASE
Thanks alot
Screenshot 2023-03-01 023615

THIS IS YOUR CODE IN visualiser.py
Screenshot 2023-03-01 023355

turn heading control task

TurnHeadingControlTask: aircraft must turn to face a random target heading while maintaining their initial altitude
Screenshot 2023-02-24 062609

I trained the model. but it is not performing turn task. Turn heading control task is same as heading control task ? what is the main difference between the two task? turn heading control task will not let the agent to turn when face the random target ? but env.render() is executing then there is no target showing

Training Example

Hi,

Could you please provide the code you used to for training the pre-trained models?

Thanks

An abnormality in the state value of the aircraft

First of all, I would like to thank you for the great work.

I modified some of the example code you presented and turned it around as follows, and a problem occurred in the process.

import jsbgym
import gymnasium as gym

env = gym.make("F16-HeadingControlTask-Shaping.STANDARD-NoFG-v0", render_mode="graph")
env.reset()
env.render()
done = False

while not done:
    action = np.array([1, 0, 0])
    observation, reward, terminated, truncated, info = env.step(action)
    print(observation)

When the simulation was performed using the F16 model and the action was arbitrarily entered [1, 0, 0] which is 1 for aileron_cmd, 0 for elevator_cmd and 0 for rudder_cmd, and when I checked the output value of the state, only the right side of the aileron have deflection and the left side of the aileron remains zero.

In addition to the F16 aircraft, this problem also occurs on F15 and B747. Only the c172 aircraft has an acceptable value.
Do you happen to know why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.