How to unload IsaacROS TensorRTNode without crashing

Hi

I am now testing yolov8 in Isaac ROS.
But when I trying to unload tensorrt node from the container, the whole container will crash.
I am using the the following command the unload the node
ros2 component unload /tensor_rt_container 1

What is the correct way to unload the tensorrt node from the container without crashing it.

Hi @leslielee

Welcome to the Isaac ROS forum. Thank you for your post.

It’s expected that python launch file shall take care of node life cycle. You don’t need to unload this node manually.

Please let me know if I helped you.

Best,
Ahung

1 Like

Hi @Ahung

Using python launch file to take care node life cycle is not suitable in my case.
As I would like to hot swap the tensorrt model without interrupting the other nitros node process.

For example, the launch file I’m using had one argus mono node and two yolov8 pipline connect to it. And I would like to shutdown one of the yolov8 nodes without affecting the other.

Best,
Leslie

Hi @leslielee ,

Thanks for the detail. I forward this case to our engineers and will keep you posted.

Best,
Ahung