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