Gazebo | Ignition | Community
Ask Your Question
0

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

asked 2023-06-20 11:33:41 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Run Environment

  • Ubuntu 20.04.5 LTS
  • Gazebo Garden, Binary Install

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-21 06:06:38 -0600

jrtg gravatar image

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.

edit flag offensive delete link more

Comments

thank you!

tanguy gravatar imagetanguy ( 2023-06-22 22:01:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2023-06-20 11:33:41 -0600

Seen: 410 times

Last updated: Jul 07 '23