Gazebo | Ignition | Community
Ask Your Question

Spawning Model Editor Model in Terminal

asked 2021-07-14 03:05:40 -0500

amoo29 gravatar image


is there a way to spawn a model in Gazebo created in the Gazebo Model Editor in the Terminal? Like with a Rosrun/Rosservice etc. command?

Path to the models: /home/user/model_editor_models/RACETRACK_xxx

Two Files in these folders:



Context / The reason I need this: I am using Matlab to control ROS & Gazebo and I have 17 different Racetracks, all built in the Model Editor. I have a predefined trajectory that my car follows and I'm subscribing to the image topic with Matlab to process the camera images. I already wrote a Matlab script that does everything other than spawning the racetracks by itself. I'd like to make an additional for-loop for spawning the racetracks so that I have a fully automated script, which I can run overnight. Right now I have to change the Racetracks manually.

I am using Gazebo 11.6

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-30 08:45:01 -0500

amoo29 gravatar image

I asked the same question in the ROS ANSWERS forum, since it's a ROS problem aswell. However I found the answer. Here's the ROS answer:

Here's the ROS answer

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-07-14 03:05:40 -0500

Seen: 36 times

Last updated: Jul 30 '21