mujoco-rs-sys

Crates.iomujoco-rs-sys
lib.rsmujoco-rs-sys
version0.0.4
sourcesrc
created_at2022-10-18 01:35:04.858814
updated_at2022-12-23 15:34:42.171859
descriptionFFI bindings to MuJoCo
homepagehttps://github.com/aaronlaw1215/MuJoCo-Rust
repositoryhttps://github.com/aaronlaw1215/MuJoCo-Rust
max_upload_size
id690547
size14,593
Sergei Surovtsev (stillonearth)

documentation

README

mujoco-rust

MuJoCo bindings for Rust

Installation requirements

These bindings require that MuJoCo be installed before building. The build system assumes that MuJoCo is installed into ~/.local 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.

Usage

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.

Example Usage

Cargo.toml

[dependencies]
mujoco-rust = { version = "0.0.4" }

main.rs

let model = mujoco_rust::Model::from_xml("simple.xml".to_string()).unwrap();
let simulation = MuJoCoSimulation::new(model);
Commit count: 92

cargo fmt