ROS2 GraphListener already shutdown

asked 2020-10-24 10:06:57 -0500

Rextab gravatar image

Dear ROS2 users.

I am performing some google unit test on my ROS2 nodes implemented with rclcpp. At the beginning of each test I create a bunch of rclcpp::Node and I delete them all at the end. And from time to time I get this weird issue from the ROS2 graph listenener:

unknown file: Failure
C++ exception with description "GraphListener already shutdown" thrown in the test body.
terminate called after throwing an instance of 'rclcpp::graph_listener::NodeNotFoundError'
what():  node not found
Aborted (core dumped)

I know this error is thrown here: https://github.com/ros2/rclcpp/blob/m... But I cannot figure out why... Any idea why is this happening ?

edit retag flag offensive close merge delete