- Install Mujoco 2.0
mujoco200into the.mujoco/directory and get a license key - Clone this repo into the
.mujoco/directory - Get dependencies: put header, dll, and lib files into directories in
mujoco200/as follows:bin/glew32.dllglew32.libopenvr_api.dllopenvr_api.lib
include/GL/glew.h(make a new folder named GL)openvr.h
- Run makefile in
src/to build.exefiles in themujoco200/bin/folder- Open VS2015 x64 Native Tools Command Prompt
- Navigate to
src/directory in repo - Run
nmake -f makefile
- Run the code after making by navigating to
mujoco200/bin/and runningmjvive.exe ..\..\vive-mujoco\model\sawyer_rope.xml
mjvive.pycurrently doesn't workminivive.cppismjvive.cppwithout controllers
Instructions for starting the Vive
- Make sure the Vive is plugged in and turned on. Turn on the controllers.
- Move the headset and controllers to the play space where the base stations can track them.
- Run the SteamVR app and check that the Vive and controllers are tracking with the base stations.
- The Vive is now ready. To turn it off, close the apps and turn the Vive off.
Instructions for running the Vive + MuJoCo demo
- The Vive and at least one controller need to be on and tracking.
- Run the Anaconda Prompt as an administrator (right click and select run as admin)
- Navigate to
${HOME}\.mujoco\mjpro200\bin - Run
mjvive.exe. Type in a MuJoCo model file when prompted, for example:..\model\humanoid.xml - The view from the headset will appear in a window on the screen. You can now use the Vive to interact with the MuJoCo model.