isl-org / spear

SPEAR: A Simulator for Photorealistic Embodied AI Research
MIT License
224 stars 15 forks source link

Independent Mujoco Simulation #295

Closed omarrayyann closed 1 month ago

omarrayyann commented 1 month ago

Is there a way to run the MuJoCo simulation without Unreal engine?

mikeroberts3000 commented 1 month ago

Hi! Good question.

Yes, you can run the MuJoCo simulation in our example app without the Unreal Engine. The output of our export pipeline is a standalone MJCF file, which you can run from inside a MuJoCo environment however you prefer. For example, you can comment out all the parts of our example code that touch the spear Python API. If you do this, you will be left with a short (i.e., roughly 20 lines of code) standalone example that launches a MuJoCo window and loads an MJCF file.

All of that being said, in order to run our export pipeline that generates an MJCF file, you will need the Unreal Engine. In future releases, we are planning to run the export pipeline for all of our scenes, and release the full pipeline output for each scene. But we haven't done that yet.

omarrayyann commented 1 month ago

Yes that would be great. I am trying to use MuJoCo since my laptop can't handle Unreal Engine.

mikeroberts3000 commented 1 month ago

You might be able to run our export pipeline even if your laptop is struggling. Our export pipeline runs entirely from the command-line, and never launches the full Unreal Editor GUI. So you might be able to run it, even if your laptop struggles with the full Unreal Editor GUI.