fix(record): shield diable logic temporarily

This commit is contained in:
TinyOh 2019-02-23 00:42:07 +08:00
parent 3bda52bc79
commit 23d77d0de3

View File

@ -644,7 +644,7 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
is_published_[stream] = false; is_published_[stream] = false;
} }
api_->Start(Source::VIDEO_STREAMING); api_->Start(Source::VIDEO_STREAMING);
} else { } else if (sum_c > sum) {
if ((camera_publishers_[Stream::LEFT].getNumSubscribers() > 0 || if ((camera_publishers_[Stream::LEFT].getNumSubscribers() > 0 ||
mono_publishers_[Stream::LEFT].getNumSubscribers() > 0) && mono_publishers_[Stream::LEFT].getNumSubscribers() > 0) &&
!is_published_[Stream::LEFT]) { !is_published_[Stream::LEFT]) {