Robotics StackExchange | Archived questions

ROS2 Managed node: get exception in the error handler

Hello,

when an exception is thrown during a managed node transition, the state machine goes into the ErrorProcessing state, and the on_error callback is called, as shown here. So far so good.

I would like to know the exception type and message in the on_error callback. Is it possible to do that, and how?

I am using ROS2 Humble on Linux and it seems that exceptions are not even logged into the console. However, according to this pull request, they should be: https://github.com/ros2/rclcpp/pull/777

Thank you

Asked by LastStarDust on 2023-05-28 22:07:45 UTC

Comments

Answers

Sorry to bump this question, but it is driving me crazy. BTW this seems to be happening only for Python node.

Asked by LastStarDust on 2023-06-15 02:28:16 UTC

Comments