CiPointCloudViewer icon indicating copy to clipboard operation
CiPointCloudViewer copied to clipboard

Point cloud update is not running?

Open jc211 opened this issue 8 years ago • 0 comments

Not sure if this code ever updates the point cloud as it returns inside the wait.

void OpenNI2CloudDataSource::update() {
  {
    std::unique_lock<std::mutex> lk(mutex_updated_);
    updated_cond_.wait(lk, [this] {
#ifdef USE_NITE2
      return updated_color_image_ && updated_user_image_;
#else
      return updated_color_image_ && updated_depth_image_;
#endif
    });

#ifdef USE_NITE2
    updated_color_image_ = updated_user_image_ = false;
#else
    updated_color_image_ = updated_depth_image_ = false;
#endif
  }

  updatePointCloud(util::now());
}

jc211 avatar Jun 27 '17 08:06 jc211