File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ void OBCameraNode::publishPointCloud(const std::shared_ptr<ob::FrameSet>& frame_
523
523
}
524
524
525
525
void OBCameraNode::publishDepthPointCloud (const std::shared_ptr<ob::FrameSet>& frame_set) {
526
- if (depth_cloud_pub_.getNumSubscribers () == 0 || !enable_point_cloud_ ) {
526
+ if (!enable_point_cloud_ || depth_cloud_pub_.getNumSubscribers () == 0 ) {
527
527
return ;
528
528
}
529
529
auto depth_frame = frame_set->depthFrame ();
@@ -613,7 +613,7 @@ void OBCameraNode::publishDepthPointCloud(const std::shared_ptr<ob::FrameSet>& f
613
613
}
614
614
615
615
void OBCameraNode::publishColoredPointCloud (const std::shared_ptr<ob::FrameSet>& frame_set) {
616
- if (depth_registered_cloud_pub_.getNumSubscribers () == 0 || !enable_colored_point_cloud_ ) {
616
+ if (!enable_colored_point_cloud_ || depth_registered_cloud_pub_.getNumSubscribers () == 0 ) {
617
617
return ;
618
618
}
619
619
if (!depth_frame_) {
You can’t perform that action at this time.
0 commit comments