Importing model to Gazebo 11 all links spawned at origin
Hello, I have made a custom gazebo model and was able to rig up all the links, joints and plugins in the model editor and save the model. However, every time I restart gazebo and insert my saved model, all the links would be spawned at the origin and not at the correct respective poses defined in the sdf file. (See image below).
Once I edit model, all the links would move to the correct positions but I will need to save the model again and exit model editor for the links to stay in the right position. If I do not save the model before exiting model editor, the links would stay at the origin after exiting model editor. I am using Gazebo Classic 11 on Ubuntu 20.04. I have tried changing the sdf versions, and also tried using the relative_to function for the poses of the links, but to no avail. Any help is appreciated. Thank you very much in advance.