Skip to content

Commit

Permalink
upd to bevy 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Nov 5, 2023
1 parent 4a44fc2 commit 1b7ac13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_mujoco"
version = "0.12"
version = "0.12.0"
edition = "2021"
license = "MIT OR Apache-2.0"
resolver = "2"
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

https://user-images.githubusercontent.com/97428129/210613348-82a5e59d-96af-42a9-a94a-c47093eb8297.mp4

_This is work in progress_

Import MJCF files into Bevy and run simulations with MuJoCo.

## Implementation Notes
Expand Down
2 changes: 2 additions & 0 deletions examples/unitree_a1_walk.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This example runs mujoco_menagerie/unitree_a1/scene.xml simulation with random control

use bevy::prelude::*;
use bevy_flycam::*;
use bevy_mujoco::*;
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ pub struct MuJoCoPlugin;

impl Plugin for MuJoCoPlugin {
fn build(&self, app: &mut App) {
let map_plugin_settings = app.world.get_resource::<MuJoCoPluginSettings>().unwrap();
let mj_plugin_settings = app.world.get_resource::<MuJoCoPluginSettings>().unwrap();

let model =
mujoco_rust::Model::from_xml(map_plugin_settings.model_xml_path.as_str()).unwrap();
mujoco_rust::Model::from_xml(mj_plugin_settings.model_xml_path.as_str()).unwrap();

let simulation = MuJoCoSimulation::new(model);

Expand Down

0 comments on commit 1b7ac13

Please sign in to comment.