MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / compute

Method compute

apps/src/pcd_select_object_plane.cpp:527–548  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

525
526 /////////////////////////////////////////////////////////////////////////
527 void
528 compute()
529 {
530 // Visualize the data
531 while (!cloud_viewer_->wasStopped()) {
532 /*// Add the plane that we're tracking to the cloud visualizer
533 PointCloud<PointT>::Ptr plane (new Cloud);
534 if (plane_)
535 *plane = *plane_;
536 visualization::PointCloudColorHandlerCustom<PointT> blue (plane, 0, 255, 0);
537 if (!cloud_viewer_->updatePointCloud (plane, blue, "plane"))
538 cloud_viewer_->addPointCloud (plane, "plane");
539*/
540 cloud_viewer_->spinOnce();
541 if (image_viewer_) {
542 image_viewer_->spinOnce();
543 if (image_viewer_->wasStopped())
544 break;
545 }
546 std::this_thread::sleep_for(100us);
547 }
548 }
549
550 /////////////////////////////////////////////////////////////////////////
551 void

Callers 15

processImplMethod · 0.45
cloud_cbMethod · 0.45
cloud_cbMethod · 0.45
cloud_callbackMethod · 0.45
runMethod · 0.45
mainFunction · 0.45
cloud_cbMethod · 0.45
computeFunction · 0.45
runMethod · 0.45
processMethod · 0.45

Calls 2

wasStoppedMethod · 0.45
spinOnceMethod · 0.45

Tested by 1

mainFunction · 0.36