SDF model not loading properly in ignition gazebo
Hi,
So I've run into the problem of loading my robot to ignition gazebo. I find the issue rather weird as I am able to load my model perfectly fine in gazebo classic, and when importing the model into ignition gazebo through the GUI it also works. However, when launching using either launch files, or via world files, the only thing that seems to load is a number of green plates (see illustration).
I believe the issue lies within the models sdf file but with numerous attempts I still struggle with solving the issue so therefore I wonder if anyone has experienced this before and has some suggestions on how to sovle the issue at hand?
The code can be found here: https://github.com/Pathorse/Tetrapod-Robot/tree/gazebo-ros-simulator-feature/catkin_ws/src/simulator
where the robot model lies within the tetrapoddescription package. A world file can be found under tetrapodignition/worlds for ignition gazebo (and under tetrapod_gazebo/worlds for gazebo classic if interested). Usually i run the simulation using:
ign gazebo tetrapod_world.sdf
If any additional information is needed for a better understanding of the problem, please don't hesitate to let me know.
Thanks.
Update: I've also tried with the following model from fuel ignition: https://app.ignitionrobotics.org/OpenRobotics/fuel/models/CERBERUS_ANYMAL_C_SENSOR_CONFIG_2
where the same issue arose.
Asked by Paal on 2021-01-25 11:02:18 UTC
Answers
I think it might be having problems locating the included model in the world file. Included resources are handled differently in ign-gazebo (see https://ignitionrobotics.org/api/gazebo/4.2/resources.html for details). Setting IGN_GAZEBO_RESOURCE_PATH
to the directory containing tetrapod_description
fixed the issue for me.
Running ign gazebo
with -v 4
might show some helpful information.
Asked by azeey on 2021-02-03 00:04:01 UTC
Comments
Strange Meshes can often be traced back to a locale problem, i.e., the machine using commas instead of dots to represent decimals. Check ign-rendering#136 for some details. As a workaround, you can try to set the locale of your system to US to see if that fixes the problem. I also cloned your repo and tried to open the world; I am seeing errors for invalid inertia.
Asked by FirefoxMetzger on 2021-03-19 14:34:11 UTC