Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running MJPC without GUI #360

Open
kgimbergh opened this issue Nov 21, 2024 · 1 comment
Open

Running MJPC without GUI #360

kgimbergh opened this issue Nov 21, 2024 · 1 comment

Comments

@kgimbergh
Copy link

Hi! I am a student at the TU Delft, I use MuJoCo for my research on balanced standing for an exoskeleton.

I use MJPC in C++ with MuJoCo version 3.1.4 on ubuntu 22.04.

To tune the weights in my cost function, I would like to be able to run MJPC without the GUI of MuJoCo. Now I have read that headless rendering is possible, but I have not been able to accomplish it.

The first option I saw was to install OSMesa or EGL and to set MUJOCO_GL to 'osmesa' or 'egl', respectively. Unfortunately nothing changed in doing this and the MuJoCo GUI launched as it would normally.

When trying to disable the launch of the GUI manually in say simulate.cc, I run into segmentation faults.

I have also seen that it might be possible using python, but I would prefer to keep to C++.

Is there anything that I have looked over? Is there a simple way to get headless rendering? Thanks!

@yuvaltassa
Copy link
Contributor

Hi @kgimbergh,

What you are asking might be possible, but could you please explain your reasoning? Why do you want this? Generally speaking, MJPC should be used either online-interactive with a GUI or offline via gRPC (no rendering). Are you thinking of the online or offline use case? If the latter, why do you need rendering at all?

Note that the offline functionality is implemented via gRPC. It is possible to talk gRPC over Python but of course it is also possible via C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants