From 1f003f505b949f3d2b207a30d60bbb463c3a44d0 Mon Sep 17 00:00:00 2001 From: Osenberg-Y Date: Tue, 14 Aug 2018 14:16:07 +0800 Subject: [PATCH] Fixed no pointcloud on ros --- wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc index 856581f..839d2d6 100644 --- a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc +++ b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc @@ -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) {