How to kill object detection ROS node when end of svo file is reached?

In the standard settings the object detection ROS node is printing END OF SVO FILE IS REACHED in a loop when the .svo file has finished. What is the cleanest way to kill (shutdown) the ros node inside the c++ code when the end of the .svo file is reached?

Hi @hgutze
you must modify the code of the nodelet to stop the node when the EOF is reached:

thx for your reply! I tried to kill the node from where you said via ros::shutdown() but it seems that this kills just one process but not the entire node like via ctrl + C. Do you know what would be the equivalent to ctrl + C here inside the program? Thx again.

For this kind of question related to ROS, I suggest you search/ask on https://answers.ros.org/