Fixed no pointcloud on ros

This commit is contained in:
Osenberg-Y 2018-08-14 14:16:07 +08:00
parent a96246cc20
commit 1f003f505b

View File

@ -324,7 +324,7 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
is_published_[stream] = true; is_published_[stream] = true;
} }
if (camera_publishers_[Stream::POINTS].getNumSubscribers() > 0 && if (points_publisher_.getNumSubscribers() > 0 &&
!is_published_[Stream::POINTS]) { !is_published_[Stream::POINTS]) {
api_->SetStreamCallback( api_->SetStreamCallback(
Stream::POINTS, [this](const api::StreamData &data) { Stream::POINTS, [this](const api::StreamData &data) {