Robotics StackExchange | Archived questions

"gz sim world.sdf" refuses new changes [closed]

Run Environment

Run code

gz sim world.sdf

Issue

Hi! I've recently started experiencing a bug whereby, until and unless I restart my computer, gz sim world.sdf loads an older version of world.sdf and does not take any new changes to world.sdf into account. Sourcing doesnt work, resetting the sim from within with ctrl+r doesnt either.

Also, when relaunching the sim I notice that sometimes the sim is already running upon launch and the robot still moving.

Anyone experienced a similar issue before and have a solution to suggest?

Thanks!

Asked by tanguy on 2023-06-20 11:33:41 UTC

Comments

Answers

Check with ps aux if any gz processes remain after closing the gui (e.g. gz sim server). Kill those before restarting the simulation.

If this does not help: try copying world.sdf to your local folder, and run gz sim ./world.sdf instead. That way you are sure that you are loading the correct world.sdf. You can also give it a unique name after each change to be sure.

It might also be worthwile to start with flag -v 4, e.g. gz sim ./world.sdf -v 4 to enable debug output and see if there are error messages that could be related.

Asked by jrtg on 2023-06-21 06:06:38 UTC

Comments

thank you!

Asked by tanguy on 2023-06-22 22:01:06 UTC