I figured out when you add additional functionality to the node, it is almost never called, because it mostly stays in the update function loop for me. Also terminating the node is mostly done by SIGTERM because it does never leave it. So I also added ros::ok() to the while loop in the update function as well.
I figured out when you add additional functionality to the node, it is almost never called, because it mostly stays in the update function loop for me. Also terminating the node is mostly done by SIGTERM because it does never leave it. So I also added ros::ok() to the while loop in the update function as well.