| 138 | } |
| 139 | |
| 140 | void |
| 141 | saveCloud (const std::string &filename, const pcl::PCLPointCloud2 &output) |
| 142 | { |
| 143 | TicToc tt; |
| 144 | tt.tic (); |
| 145 | |
| 146 | print_highlight ("Saving "); print_value ("%s ", filename.c_str ()); |
| 147 | |
| 148 | pcl::io::savePCDFile (filename, output, Eigen::Vector4f::Zero (), |
| 149 | Eigen::Quaternionf::Identity (), true); |
| 150 | |
| 151 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", output.width * output.height); print_info (" points]\n"); |
| 152 | } |
| 153 | |
| 154 | /* ---[ */ |
| 155 | int |
no test coverage detected