{"repo":"stillonearth/bevy_rl","free":true,"listed":false,"github":"https://github.com/stillonearth/bevy_rl","clone":"git clone https://github.com/stillonearth/bevy_rl.git","description":"Reinforcement Learning environments with Bevy","language":"Rust","stars":103,"topics":["bevy","gym","rl"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"🏋️‍♀️ bevy rl Reinforcement Learning for Bevy Engine Build Reinforcement Learning Gym environments with Bevy engine to train AI agents that can learn from screen pixels or defined obeservation state. 📝Features - Set of APIs to implement OpenAI Gym interface, such as reset , step , render and associated simulator states - Multi-Agent support - Rendering screen pixels to RAM buffer — for training agents with raw pixels - REST API to control agents 👩‍💻 Usage 1. Define Action and Obeservation Space Observation space needs to be Serializable for REST API to work. 2. Enable AI Gym Plugin Width and height should exceed 256, otherwise wgpu will panic. 2.1 (Optional) Enable Rendering to Buffer If your environment wants to export raw pixels, you will need to attach a render target to each camera you want to export them from. Render targets are copied each frame from GPU memory to RAM buffers so that they can be accessed with REST API. 4. Handle bevy rl events bevy rl will communicate with your environment through events. Those events initiate from REST API or bevy rl.SimulationPauseTimer that pauses the simulation with given interval ( AIGymSettings.pause interval ). Event Description Usage -------------- ---------------------------------- ------------------------------------------------------------------------------------------ EventReset Reset environment to initial state You should rebuild your evnironment here EventControl Switch to control state You should recieve actions here","default_branch":null,"files":null,"tree":[],"storefront":"/r/stillonearth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stillonearth/bevy_rl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}