Gazebo | Ignition | Community
Ask Your Question

How to check that Gazebo successfully loaded world and all models?

asked 2020-08-12 14:09:33 -0600

ArtemK gravatar image

Is there a way to programatically confirm that Gazebo successfully loaded all models apart from parsing Gazebo output in vebose mode? I tried "breaking" one model by specifying invalid path to visual mesh, and I still see the model in GUI under "Models" list (used Gazebo 9.13). I also tried to query rostopic echo -n 1 /gazebo/model_states and the model is there. When starting with "--verbose" flag Gazebo prints "[Wrn] [] File or path does not exist" and "[Err] [] No mesh specified" in console. Is it possible to make Gazebo not add "incomplete" models and treat them as invalid?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-13 14:52:16 -0600

chapulina gravatar image

Is it possible to make Gazebo not add "incomplete" models and treat them as invalid?

No, that's not currently possible. Gazebo's approach has always been to load as much as possible, and print warnings and errors to help the user debug what couldn't be loaded. We don't have a programmatic way of catching these errors though.

Related, libSDFormat got much more strict about model loading from version 9 (used by Gazebo 11), and initially it would fail loading the entire world if there was a problem with something as small as a visual. We relaxed that on this PR though because that was too strict and would break too many existing simulations. So even on Gazebo 11, all you get are console messages.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-08-12 14:01:35 -0600

Seen: 148 times

Last updated: Aug 13 '20