Skip to content

Commit

Permalink
sumpport bevy 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Nov 5, 2023
1 parent e2d50db commit 518af07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
edition = "2021"
name = "bevy_rl"
version = "0.11.0-beta"
version = "0.12.0"
license = "MIT OR Apache-2.0"
description = "Build environments for reinforcement learning with bevy"
keywords = ["ai", "bevy", "gym", "rl"]
repository = "https://github.com/stillonearth/bevy_rl"

[dependencies]
bevy = { version = "0.11.0" }
bevy = { version = "0.12" }
bytemuck = "1.12.3"
crossbeam = "0.8.2"
crossbeam-channel = "0.5.6"
Expand All @@ -20,7 +20,7 @@ mime = "0.3.16"
serde = "1.0.89"
serde_derive = "1.0.143"
serde_json = "1.0.83"
wgpu = "0.16.2"
wgpu = "0.17.1"

[dev-dependencies]
bitflags = "2.0.2"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Build Reinforcement Learning [Gym](https://gym.openai.com/) environments with [B
| 0.9 | 0.9.8-beta |
| 0.10 | 0.10 |
| 0.11 | 0.11.0-beta |
| 0.12 | 0.12.0 |

## 📝Features

Expand Down
4 changes: 2 additions & 2 deletions tests/test_rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn bevy_rl_pause_request(
ai_gym_state: Res<AIGymState<Actions, EnvironmentState>>,
env_state: Res<EnvironmentState>,
) {
for _ in pause_event_reader.iter() {
for _ in pause_event_reader.read() {
let mut ai_gym_state = ai_gym_state.lock().unwrap();
ai_gym_state.set_env_state(env_state.clone());
}
Expand All @@ -35,7 +35,7 @@ fn bevy_rl_control_request(
mut simulation_state: ResMut<NextState<SimulationState>>,
mut env_state: ResMut<EnvironmentState>,
) {
for control in pause_event_reader.iter() {
for control in pause_event_reader.read() {
let unparsed_actions = &control.0;
for i in 0..unparsed_actions.len() {
if let Some(unparsed_action) = unparsed_actions[i].clone() {
Expand Down

0 comments on commit 518af07

Please sign in to comment.