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

Function main

tools/oni2pcd.cpp:72–95  ·  view source on GitHub ↗

---[ */

Source from the content-addressed store, hash-verified

70
71/* ---[ */
72int
73main (int argc, char **argv)
74{
75 print_info ("Convert an ONI file to PCD format. For more information, use: %s -h\n", argv[0]);
76
77 if (argc < 2)
78 {
79 printHelp (argc, argv);
80 return (-1);
81 }
82
83 auto* grabber = new pcl::ONIGrabber (argv[1], false, false);
84 std::function<void (const CloudConstPtr&) > f = [] (const CloudConstPtr& cloud) { cloud_cb (cloud); };
85 boost::signals2::connection c = grabber->registerCallback (f);
86
87 while (grabber->hasDataLeft ())
88 {
89 grabber->start ();
90 }
91 PCL_INFO ("Successfully processed %d frames.\n", i);
92
93 delete grabber;
94 return (0);
95}

Callers

nothing calls this directly

Calls 5

hasDataLeftMethod · 0.80
printHelpFunction · 0.70
cloud_cbFunction · 0.70
registerCallbackMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected