#!/bin/python3
import rclpy
from nav2_simple_commander.robot_navigator import BasicNavigator
rclpy.init()
nav = BasicNavigator()
nav.destroy_node()
Exception ignored in: <function ActionClient.__del__ at 0x7f310cc98f70>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 597, in __del__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 590, in destroy
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 122, in __enter__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 104, in _get_capsule
rclpy._rclpy_pybind11.InvalidHandle: Tried to use a handle that has been destroyed.
Exception ignored in: <function ActionClient.__del__ at 0x7f310cc98f70>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 597, in __del__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 590, in destroy
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 122, in __enter__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 104, in _get_capsule
rclpy._rclpy_pybind11.InvalidHandle: Tried to use a handle that has been destroyed.
Exception ignored in: <function ActionClient.__del__ at 0x7f310cc98f70>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 597, in __del__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 590, in destroy
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 122, in __enter__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 104, in _get_capsule
rclpy._rclpy_pybind11.InvalidHandle: Tried to use a handle that has been destroyed.
Exception ignored in: <function ActionClient.__del__ at 0x7f310cc98f70>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 597, in __del__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 590, in destroy
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 122, in __enter__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 104, in _get_capsule
rclpy._rclpy_pybind11.InvalidHandle: Tried to use a handle that has been destroyed.
Exception ignored in: <function ActionClient.__del__ at 0x7f310cc98f70>
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 597, in __del__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/action/client.py", line 590, in destroy
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 122, in __enter__
File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/handle.py", line 104, in _get_capsule
rclpy._rclpy_pybind11.InvalidHandle: Tried to use a handle that has been destroyed.
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Clean exit
Actual behavior
Exits with 0 code but prints the following warning:
Additional information
Looks like
Node.destroy_nodeonly destroys publishers, subscribers, etc. but doesn't handle ActionClients. I'll post a PR for this.