ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 Managed node: get exception in the error handler

asked 2023-05-28 22:07:45 -0500

LastStarDust gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-15 02:28:16 -0500

LastStarDust gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-05-28 22:07:45 -0500

Seen: 230 times

Last updated: Jun 15 '23