PAUSE/STOP the ros subscriber(callback function) and restart it?
According to the tutorial of cv_bridge(here is two lines of code in the tutorial, 1.4 An example ROS node),
(line 24)image_sub_ = it_.subscribe("in", 1, &ImageConverter::imageCb, this);
(line 61)ros::spin();
Base on this code, the ros::spin() will call the callback function and then always stay in the callback function! So if I want to pause the callback function or subscriber for a while, and then restart it, what should I do ?