rospy overview: Initialization and Shutdown | Messages | Publishers and Subscribers | Services | Parameter Server | Logging | Names and Node Information | Time | Exceptions | tf/Overview | tf/Tutorials | Python Style Guide

The rospy API uses a common set of exceptions to indicate errors to your program. These exceptions are listed and described below. ROSException is the base type of these exceptions and can be used when you wish to capture all rospy-related errors. For a more complete list, including code API documentation, please see the rospy exceptions Code API docs.


  • Base exception class for ROS clients


  • Exception for message serialization errors


  • Exception for errors initializing ROS state


  • Exception for operations that interrupted. This is most commonly used with rospy.sleep() and rospy.Rate


  • Base class for exceptions that occur due to internal rospy errors (i.e. bugs).


  • Errors related to communicate with ROS Services

Wiki: rospy/Overview/Exceptions (last edited 2009-10-29 23:28:18 by KenConley)