adderbyte / GYM_XPLANE_ML

GYM Environment for XPlane. Reinforcement Learning and Autonomous Piloting.
GNU General Public License v3.0
65 stars 18 forks source link

how to use the program #3

Closed onionysy closed 2 years ago

onionysy commented 4 years ago

could you please tell me the detail about how to use the program? thank you very much!

adderbyte commented 4 years ago

Hi, Assuming you are familiar with the openai-gym environment then the program should be easy to use. You need only to follow the installation steps in the Read me below: gym-xplane final version.

This is essentially the gym xplane final version that could be installed easily.

You need to have Xplane installed. After this you define the flight scenario in xplane or use the scenario provided in the repository as a test (check the files in the second link). Gym Xplane would interact with the Xplane simulation by sending commands that will navigate the aircraft.

I hope this helps ! Let me know if there is any other thing that I should explain or elaborate. I have updated the Read me to reflect the answer here.

DragonSongjg commented 4 years ago

Is the version of x-plane specific? The Demo or the Completed Version? v11.0 or v10.0?

adderbyte commented 4 years ago

Hi, There is the final version https://github.com/adderbyte/GYM_XPLANE_ML/tree/master/gym_xplane_final_version which is straight forward to run. The other version https://github.com/adderbyte/GYM_XPLANE_ML/tree/master/gym_xplane_envirnment contains some functionality that is being tested.

Both versions can be used but the final version is easier to set up.

Best regards.

jhchan0805 commented 3 years ago

image image

Hi I followed the steps and instructions on how to install gym_xplane and XPC, and now I trying to run the random_agent.py from https://github.com/adderbyte/GYM_XPLANE_ML/tree/master/gym_xplane_final_version/examples

But the code does not interact with the X-plane simulator, and keep showing the [0 0 0 0 0 0 0 0 0 0 0] False action as shown in the pictures above. May I know what problem is this?