gazeboObject.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:arm_scenario_simulator 作者: cmaestre 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号