mujoco-python-viewer icon indicating copy to clipboard operation
mujoco-python-viewer copied to clipboard

Added method to update window's title

Open rpapallas opened this issue 3 years ago • 3 comments

I needed this small functionality and thought might be useful in general. I have multiple MuJoCo data that run in parallel and since I can only visualize one at a time, if I want to know which one I am looking at, I might need to update the window title.

rpapallas avatar Aug 24 '22 15:08 rpapallas

I guess it doesn't hurt anyone so I can merge this.

since I can only visualize one at a time

Could you please elaborate what you mean by this?

rohanpsingh avatar Aug 24 '22 15:08 rohanpsingh

I have had issues spinning up multiple viewer instances from the same code. On macOS, it gives an error. I haven't tried on Linux, I could try now and see if this is a macOS issue? Are you able to spin up multiple instances?

Edit: I see, on Linux I could have two viewers, and it won't throw an error like macOS does, but only one viewer can render, the other one is black (even with different mjData).

rpapallas avatar Aug 24 '22 16:08 rpapallas

Hi @rpapallas I think in that case, I must try and make mutiple viewer instances work. Then, we can see if the method implemented in this PR is needed or not.

rohanpsingh avatar Aug 26 '22 06:08 rohanpsingh