---[ */
| 70 | |
| 71 | /* ---[ */ |
| 72 | int |
| 73 | main (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 | } |
nothing calls this directly
no test coverage detected