edbeeching / godot_rl_agents_examples

Example Environments for the Godot RL Agents library
MIT License
37 stars 13 forks source link

Adds Lander3D env #16

Closed Ivan-267 closed 8 months ago

Ivan-267 commented 9 months ago

ONNX video

https://github.com/edbeeching/godot_rl_agents_examples/assets/61947090/221f6f5b-bbd4-4560-a6d5-473c0231f480

Description

A 3D Lander env where the task is to land safely and as close as possible to the goal position. This env uses the discrete actions branch, and needs it for:

I added this information to the readme so users will know the requirements for now, until the discrete actions branch is potentially merged.

Detailed description of env is present in readme: https://github.com/edbeeching/godot_rl_agents_examples/blob/3d_lander_example/examples/3DLander/readme.md

Running inference:

To start inference using the pretrained onnx, open the testing_scene in Godot Editor, then press F6 or click on the scene starting icon

Known issues: There is a rare error caused by an inf value being sent by an observation noticed during training. It hasn't been investigated or resolved.

Tasks

edbeeching commented 8 months ago

hey @Ivan-267 and am just trying out this example. I have the following error:

image

Ivan-267 commented 8 months ago

Hello,

Thanks for testing the env.

I had this issue before due to blend.import files being needed (it turns it into the correct Rigidbody class), so I added an additional .gitignore file in 3DLander/blender to include the files for this example.

I tried downloading the zip from the branch on github website and it loads for me in Godot 4.2.1 stable.

Can you check if you have the .gitignore file in blender folder in the example and specifically if you see the blend.import files (before Godot makes them upon first load)? At the moment I'm not sure what causes the issue, maybe it works differently on a different PC.

edbeeching commented 8 months ago

Ah perhaps I need to re-add my blender path. I will try again tomorrow.

Ivan-267 commented 8 months ago

The comment is a great idea, I'll definitely add something. Maybe I have some cache locally or my Godot version is slightly different, for now the comment should resolve it. The merge conflict is probably about the readme (each env adds its own video), I'll check that too.