Visualization¶
It’s useful to visualize what the simulation is doing. MuJoCo-rs provides three main ways of visualization (requires enabling the corresponding Cargo features):
3D viewer for onscreen visualization (window) —
viewerfeature (orviewer-uito enable with UI)3D renderer for offscreen rendering (array or a file) —
rendererfeatureWrapper of MuJoCo’s C++ 3D viewer for onscreen visualization using MuJoCo’s official C++ viewer —
cpp-viewerfeature
Attention
On macOS, visualization does not work without patching the glutin dependency.
See the installation guide for instructions.