Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_mujoco"
version = "0.2.0"
version = "0.3.0"
edition = "2024"
authors = ["kanarus <kanarus786@gmail.com>"]
documentation = "https://docs.rs/rusty_mujoco"
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<h1>Rusty MuJoCo Binding</h1>
<p>Rust bindings for the <a href="https://mujoco.org">MuJoCo</a> physics simulator</p>
<p>MuJoCo Version: <a href="https://github.com/google-deepmind/mujoco/releases/tag/3.3.2">3.3.2</a></p>
<p>MuJoCo Version: <a href="https://github.com/google-deepmind/mujoco/releases/tag/3.4.0">3.4.0</a></p>
</div>

<br>
Expand Down Expand Up @@ -32,32 +32,32 @@

## Requirements

- [MuJoCo 3.3.2](https://github.com/google-deepmind/mujoco/releases/tag/3.3.2) downloaded and installed
- [MuJoCo 3.4.0](https://github.com/google-deepmind/mujoco/releases/tag/3.4.0) downloaded and installed
- Additionally, if you place mujoco library in a non-standard directory of the platform,
you need `MUJOCO_LIB` environment variable set to the path of the directory containing
`libmujoco.so` or `mujoco.lib` (e.g. `$HOME/.mujoco/mujoco-3.3.2/lib` when you placed the official release above in `~/.mujoco`)
`libmujoco.so` or `mujoco.lib` (e.g. `$HOME/.mujoco/mujoco-3.4.0/lib` when you placed the official release above in `~/.mujoco`)

### Note / Tips

- For example on x86_64 Linux, run:
```sh
wget https://github.com/google-deepmind/mujoco/releases/download/3.3.2/mujoco-3.3.2-linux-x86_64.tar.gz
tar -xzf mujoco-3.3.2-linux-x86_64.tar.gz
wget https://github.com/google-deepmind/mujoco/releases/download/3.4.0/mujoco-3.4.0-linux-x86_64.tar.gz
tar -xzf mujoco-3.4.0-linux-x86_64.tar.gz
```
to download & expand MuJoCo 3.3.2.\
to download & expand MuJoCo 3.4.0.\
On other platforms, do the same with the appropriate archive file for your system.

- One way to setup is to install MuJoCo to _a default standard path_ like `/usr/local/lib/`
(or a folder in _PATH_ on Windows), then if needed create symlink to `mujoco-3.3.2/lib/libmujoco.so` there,
(or a folder in _PATH_ on Windows), then if needed create symlink to `mujoco-3.4.0/lib/libmujoco.so` there,
and insert to your shell config file:
```sh
# example on Linux with /usr/local/lib/
export MUJOCO_LIB="/usr/local/lib/mujoco-3.3.2/lib"
export MUJOCO_LIB="/usr/local/lib/mujoco-3.4.0/lib"
```
Or if you'd like to avoid to install MuJoCo to such a system directory:
```sh
# example on Linux with $HOME/.mujoco/
export MUJOCO_LIB="$HOME/.mujoco/mujoco-3.3.2/lib"
export MUJOCO_LIB="$HOME/.mujoco/mujoco-3.4.0/lib"
export LD_LIBRARY_PATH="$MUJOCO_LIB:$LD_LIBRARY_PATH"
```

Expand All @@ -70,7 +70,7 @@

```toml
[dependencies]
rusty_mujoco = "0.2"
rusty_mujoco = "0.3"
glfw = "0.60"
```

Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fn bindgen() {
.header_contents("bindgen.h", "#include \"mujoco.h\"")
.clang_args([format!("-I{vendor_include}"), format!("-I{vendor_include_mujoco}")])
.use_core()
.raw_line("#![allow(unused, non_camel_case_types, non_snake_case, non_upper_case_globals)]")
.raw_line("#![allow(unused, non_camel_case_types, non_snake_case, non_upper_case_globals, clippy::all)]")
.respect_cxx_access_specs(false)
.default_visibility(bindgen::FieldVisibilityKind::PublicCrate)
.newtype_enum("_?mjt.+[^Bit]")
Expand Down
Loading