godot_rl_agents_examples icon indicating copy to clipboard operation
godot_rl_agents_examples copied to clipboard

Adds the RobotFPS example

Open Ivan-267 opened this issue 1 year ago • 3 comments

RobotFPS environment:

An arcade style FPS environment, trained using SB3 PPO, observations contain 3 stacked frames of data from a raycast sensor (extended to add the facing direction of any visible robot relative to the agent). Making this env took quite a bit of experimentation with different types of obs and rewards while observing the trained behavior.

Trained agent onnx inference:

https://github.com/user-attachments/assets/4e7ecd92-f2e9-49c3-8b75-1a1f67af7922

Todo:

  • [x] Add readme
  • [x] Add video to repository readme

Ivan-267 avatar Oct 05 '24 08:10 Ivan-267

Amazing example @Ivan-267 , I will have time to look at the code later this week.

edbeeching avatar Oct 09 '24 07:10 edbeeching

@Ivan-267 Nice env! I love the idea. Just a suggestion, can you add a few maps instead of just one. I tried the FPS example, and found it quite monotonous. Other than that, amazing environment.

DQN-Labs avatar Oct 10 '24 12:10 DQN-Labs

@Ivan-267 Nice env! I love the idea. Just a suggestion, can you add a few maps instead of just one. I tried the FPS example, and found it quite monotonous. Other than that, amazing environment.

Thanks for your feedback and the suggestion!

The example is meant for users to test and modify/reuse/build upon, so anyone could for example add their own map, different designs or additional gameplay mechanics. I definitely agree it would be fun to have more maps, but at least at the moment it's out of scope of the example (but could be considered for a future time).

Ivan-267 avatar Oct 10 '24 13:10 Ivan-267