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

Where to catch exception from rmw?

asked 2020-09-21 10:26:50 -0600

rrrand gravatar image

There are some issues about exceptions from "rmw publish" (e.g., https://github.com/ros2/rmw_fastrtps/...).

Is exception from "rmw publish" a bug and it is not necessary to catch exception in my code? Or my code is responsible for catching exceptions from rmw?

What are ROS2 agreements about exception handling?

I cannot find any ROS2 guides about where exceptions are expected to be catched: in my code (where rclcpp::Publisher::publish called), somewhere in rclcpp or in rmw layer. There are no instructions in ROS2 tutorials about exceptions (https://index.ros.org/doc/ros2/Tutori...).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-09-22 11:15:41 -0600

Dirk Thomas gravatar image

rmw is a C API (not C++) and as such there can be no exceptions raised. If any RMW implementation does raise an exception (which it shouldn't) please fill a ticket in the corresponding repository since that needs to be fixed within the RMW implementation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-09-21 10:26:50 -0600

Seen: 298 times

Last updated: Sep 22 '20