| 115 | } |
| 116 | |
| 117 | void |
| 118 | saveCloud (const std::string &filename, const pcl::PCLPointCloud2 &output) |
| 119 | { |
| 120 | TicToc tt; |
| 121 | tt.tic (); |
| 122 | |
| 123 | print_highlight ("Saving "); print_value ("%s ", filename.c_str ()); |
| 124 | |
| 125 | PCDWriter writer; |
| 126 | writer.writeBinaryCompressed (filename, output, translation, orientation); |
| 127 | |
| 128 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", output.width * output.height); print_info (" points]\n"); |
| 129 | } |
| 130 | |
| 131 | /* ---[ */ |
| 132 | int |
no test coverage detected