| 64 | } |
| 65 | |
| 66 | bool |
| 67 | loadCloud (const std::string &filename, pcl::PCLPointCloud2 &cloud) |
| 68 | { |
| 69 | TicToc tt; |
| 70 | print_highlight ("Loading "); print_value ("%s ", filename.c_str ()); |
| 71 | |
| 72 | tt.tic (); |
| 73 | if (pcl::io::load (filename, cloud)) { |
| 74 | print_error ("Cannot found input file name (%s).\n", filename.c_str ()); |
| 75 | return (false); |
| 76 | } |
| 77 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); |
| 78 | print_value ("%d", cloud.width * cloud.height); print_info (" points]\n"); |
| 79 | print_info ("Available dimensions: "); print_value ("%s\n", getFieldsList (cloud).c_str ()); |
| 80 | |
| 81 | return (true); |
| 82 | } |
| 83 | |
| 84 | void |
| 85 | compute (const pcl::PCLPointCloud2::ConstPtr &input, pcl::PCLPointCloud2 &output, |
no test coverage detected