def delete(self):
if not self.spawned: return
try:
rospy.loginfo("Deleting "+self.gazebo_name)
GazeboObject.delete_model_srv.wait_for_service()
resp_delete = GazeboObject.delete_model_srv(self.gazebo_name)
self.spawned = False
except rospy.ServiceException, e:
pass # Don't know why, but an exception is raised by ROS whereas the deletion is actually successful ... So ignore the exception
评论列表
文章目录