Open main menu

Humanoid Robots Wiki β

Changes

MuJoCo WASM

707 bytes added, 27 May
no edit summary
Then you can open it on the browser on your local machine!
 
== Adding New Models ==
All the models are stored in the folder examples/scenes, as seen below:
[[File:Example folder.png|400px|thumb|none]]
You can add your own model XML and meshes here. For example, here we add the stompy folder.
 
After adding the model files, run
<code>
python generate_index.py
</code>
to update file indexes.
 
Then copy all the content in <code>index.json</code> to <code> mujocoUtils.js</code>, as shown below:
[[File:Add model1.png|400px|thumb|none]]
 
In the end, again at file <code> mujocoUtils.js</code>, add the name and scene file
[[File:Add model2.png|600px|thumb|none]]
 
Then reload again and you can see new models have been added:
[[File:Add model3.png|800px|thumb|none]]
11
edits