Fixed no pointcloud on ros

This commit is contained in:
Osenberg-Y 2018-08-14 14:47:26 +08:00
parent 94fd56a65d
commit c3fc4ba3ba

View File

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