1
$\begingroup$

Rosanswers logo

Hi everyone.

So my question is pretty much what the title is. Is it good practice or even necessary to unregister from ROS publishers or subscribers I used inside my ROS node before terminating the node from the script?

Is there any difference if my ROS node is written in python or c++?

Thanks in advance.


Originally posted by Ifx13 on ROS Answers with karma: 54 on 2023-01-20

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

As far as my experience is, It does not make difference if you unregistered the pub/sub before terminating the node. As node terminates, it will stop publishing or subscribing to the topic until and unless there is another node publishing or subscribing to the same topic.


Originally posted by aarsh_t with karma: 328 on 2023-01-20

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.