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

Method cloud_cb_

apps/src/dinast_grabber_example.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 {}
56
57 void
58 cloud_cb_(CloudConstPtr cloud_cb)
59 {
60 static unsigned count = 0;
61 static double last = pcl::getTime();
62 if (++count == 30) {
63 double now = pcl::getTime();
64 std::cout << "Average framerate: " << double(count) / double(now - last) << " Hz"
65 << std::endl;
66 count = 0;
67 last = now;
68 }
69 if (!viewer.wasStopped())
70 viewer.showCloud(cloud_cb);
71 }
72
73 int
74 run()

Callers

nothing calls this directly

Calls 3

getTimeFunction · 0.85
showCloudMethod · 0.80
wasStoppedMethod · 0.45

Tested by

no test coverage detected