---[ */
| 186 | |
| 187 | /* ---[ */ |
| 188 | int |
| 189 | main (int argc, char** argv) |
| 190 | { |
| 191 | // print_info ("Compute the differences between two point clouds and visualizing them as an output intensity cloud. For more information, use: %s -h\n", argv[0]); |
| 192 | |
| 193 | if (argc < 4) |
| 194 | { |
| 195 | printHelp (argc, argv); |
| 196 | return (-1); |
| 197 | } |
| 198 | |
| 199 | // Parse the command line arguments for .pcd files |
| 200 | std::vector<int> p_file_indices; |
| 201 | p_file_indices = parse_file_extension_argument (argc, argv, ".pcd"); |
| 202 | if (p_file_indices.size () != 3) |
| 203 | { |
| 204 | print_error ("Need two input PCD files and one output PCD file to continue.\n"); |
| 205 | return (-1); |
| 206 | } |
| 207 | |
| 208 | // Command line parsing |
| 209 | std::string correspondence_type = default_correspondence_type; |
| 210 | parse_argument (argc, argv, "-correspondence", correspondence_type); |
| 211 | |
| 212 | // Load the first file |
| 213 | pcl::PCLPointCloud2::Ptr cloud_source (new pcl::PCLPointCloud2 ()); |
| 214 | if (loadPCDFile (argv[p_file_indices[0]], *cloud_source) != 0) |
| 215 | return (-1); |
| 216 | // Load the second file |
| 217 | pcl::PCLPointCloud2::Ptr cloud_target (new pcl::PCLPointCloud2 ()); |
| 218 | if (loadPCDFile (argv[p_file_indices[1]], *cloud_target) != 0) |
| 219 | return (-1); |
| 220 | |
| 221 | pcl::PCLPointCloud2 output; |
| 222 | // Perform the feature estimation |
| 223 | compute (cloud_source, cloud_target, output, correspondence_type); |
| 224 | |
| 225 | // Output the third file |
| 226 | savePCDFile (argv[p_file_indices[2]], output); |
| 227 | } |
nothing calls this directly
no test coverage detected