Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 612 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 612 Bytes

OCaml Bindings to MuJoCo

Installation

  1. Install MuJoCo 210 to the default directory ~/.mujoco/mujoco210 from here

  2. Install GLFW3

  3. Install GLFW3 OCaml bindings

opam install glfw-ocaml
  1. Install Mujoco bindings
dune build @install
dune install

Example

dune exec ./examples/basic.exe -- -xml model/rodent.xml 
dune exec ./examples/basic.exe -- -xml model/humanoid.xml 

dune exec ./examples/random_policy.exe -- -xml model/ant.xml -record #record video
dune exec ./examples/random_policy.exe -- -xml model/ant.xml # visualize only