mjpython
passive viewer corrupts variable named model
(and others)
#2265
Labels
bug
Something isn't working
Intro
Hi!
I'm a graduate student using MuJoCo for robotics research.
My setup
MuJoCo 3.2.5, Python 3.12.7, arm64, macOS 15.1.1
What's happening? What did you expect?
When using the passive viewer under
mjpython
, if there's a variable namedmodel
in the global scope, this variable will get overwritten with the MjModel passed to the passive viewer. After digging a little bit, I suspect that it has to do with this line onmjpython.mm
:After launching the passive viewer, any variables with those names will be redefined.
Steps for reproduction
Run the provided code under
mjpython
. On my machine, the it prints the followingThe second set of print statements should be unchanged.
Minimal model for reproduction
No response
Code required for reproduction
Confirmations
The text was updated successfully, but these errors were encountered: