Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.26 KB

File metadata and controls

39 lines (25 loc) · 1.26 KB

rusty_mujoco Examples

visualize_left_object.rs

This example leaves a single object in the scene and visualizes it.

Requirements

Usage

Pass the path to a MuJoCo model XML file as an argument. For example, you can use the humanoid.xml model provided by MuJoCo:

cargo run --example visualize_left_object -- $MUJOCO_LIB/../model/humanoid/humanoid.xml

(replace the path to humanoid.xml with yours)

Options:

  • --camera <camera name>: Specify the name of camera to use for visualization (optional). If not provided, the default camera will be used.
    • example: --camera side for the humanoid model

Depending on your setting, you may need to specify:

  • MUJOCO_LIB environment variable, to the MuJoCo directory path (e.g. $HOME/.mujoco/mujoco-3.3.2/lib)
  • LD_LIBRARY_PATH (Linux), DYLD_LIBRARY_PATH (macOS), or PATH (Windows) configuration for searching the MuJoCo library path

like:

LD_LIBRARY_PATH="$MUJOCO_LIB" cargo run --example visualize_left_object -- $MUJOCO_LIB/../model/humanoid.xml