Gazebo | Ignition | Community
Ask Your Question

how to delete object in gazebo

asked 2013-03-13 21:33:48 -0600

Cherry gravatar image


I have a question about how to delete object in gazebo. I am able to use: "gzfactory spawn -f model.sdf" to spawn object but I don't know how to delete object using a command instead of using GUI and right click to delete the object. Anybody know how to do that? Thanks!

Best wishes Cherry

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-14 01:39:08 -0600

iche033 gravatar image


gzfactory delete -m model_name

where model_name is the name of the model you want to delete

edit flag offensive delete link more


HI, thanks. I have another question. Because I am doing this in a loop. So I would like the model to be spawned and deleted multiple time. After I spawned the object twice, then I cannot deleted in the scene, although on the left in the model list, the object's name disappeared there. Do you know how to do the delete and spawn multiple times?

Cherry gravatar imageCherry ( 2013-03-14 10:41:13 -0600 )edit

HI, I just figured out it was the rendering problem. I don't actually need to see the object in the scene as long as it exists in the collision model.

Cherry gravatar imageCherry ( 2013-03-14 12:22:49 -0600 )edit

@iche033 How it is possible to delete model from launched ROS gazebo package? Because it crashes on deleting last model

skhan gravatar imageskhan ( 2013-03-15 05:58:58 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-03-13 21:33:48 -0600

Seen: 1,131 times

Last updated: Mar 14 '13