mujoco icon indicating copy to clipboard operation
mujoco copied to clipboard

Python Viewer: Clear displayed error post successful model load

Open vikashplus opened this issue 1 year ago • 3 comments

  1. Load a healthy model on the viewer using python -m mujoco.viewer --mjcf=model.xml
  2. Now edit the model.xml to introduce a bug
  3. Reload the viewer. The viewer correctly shows the compilation error
  4. Now undo/fix the model edit/error
  5. Hit reload on the viewer to pick the new model.
    • As there is no error, the model loads just fine
    • The old error from step 3 is on display. If my understanding is correct - there shouldn't be any error message on the display as the model load was successful image

Version: MuJoCo 3.9 OS: Ubuntu 18.04

vikashplus avatar Oct 21 '23 19:10 vikashplus

Can you check if this issue also happens with the native simulate app?

saran-t avatar Oct 21 '23 22:10 saran-t

@saran-t Native simulate reloads the model fine and the error message disappears.

kevinzakka avatar Oct 23 '23 02:10 kevinzakka

@kevinzakka beats me to this. Thanks Kevin :)

vikashplus avatar Oct 23 '23 17:10 vikashplus