virtual ~SensorStreamManager() { stream_.removeNewFrameListener(this); stream_.stop(); stream_.destroy(); publisher_.shutdown(); }
void stop () { if (!running) return; cam_->stop (); // Must stop camera before streaming_pub_. poll_srv_.shutdown (); streaming_pub_.shutdown (); running = false; }