Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point cloud update is not running? #95

Open
jc211 opened this issue Jun 27, 2017 · 0 comments
Open

Point cloud update is not running? #95

jc211 opened this issue Jun 27, 2017 · 0 comments

Comments

@jc211
Copy link

jc211 commented Jun 27, 2017

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());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant