1、说明
本节介绍异常类型及相关描述
更多详细信息可以参考http://docs.ros.org/api/rospy/html/rospy.exceptions-module.html
2、使用
ROSException,ROS客户端基本异常类
ROSSerializationException,信息序列化的错误异常
ROSInitException,初始化ROS状态的错误异常
ROSInterruptException,操作中断的错误异常,经常在 rospy.sleep() and rospy.Rate 中用到
ROSInternalException,rospy内部错误的异常 (i.e. bugs).
ServiceException,ROS服务通讯相关错误的异常
感谢创客制造https://www.ncnynl.com/archives/201611/1075.html