Crates.io | mujoco-rust |
lib.rs | mujoco-rust |
version | 0.0.6 |
source | src |
created_at | 2022-10-18 01:39:02.985621 |
updated_at | 2023-05-28 22:25:20.384712 |
description | MuJoCo bindings for Rust |
homepage | https://github.com/TheButlah/mujoco-rs/ |
repository | https://github.com/TheButlah/mujoco-rs/ |
max_upload_size | |
id | 690549 |
size | 60,383 |
MuJoCo bindings for Rust
These bindings require that MuJoCo be installed before building. The build system assumes that MuJoCo is installed into ~/.local/mujoco
on UNIX-based systems and C:\Program Files\MuJoCo
on Windows, but any installation directory can be used, as long as either the environment variable MUJOCO_DIR or MUJOCO_PREFIX is set to the root of the installation.
These wrappers use mujoco-rs-sys
to provide rust bindings to the MuJoCo C API. The mujoco-rs-sys
crate is not intended to be used directly, but instead is used by mujoco-rust
to provide a more idiomatic rust interface to the MuJoCo API.
Cargo.toml
[dependencies]
mujoco-rust = { version = "0.0.6" }
main.rs
let model = mujoco_rust::Model::from_xml("simple.xml".to_string()).unwrap();
let simulation = MuJoCoSimulation::new(model);