| 53 | double default_radius = 0.01; |
| 54 | |
| 55 | void |
| 56 | printHelp (int, char **argv) |
| 57 | { |
| 58 | print_error ("Syntax is: %s <input_point_cloud> <output_point_cloud> <options>\n", argv[0]); |
| 59 | print_info ("This tool rely on the file extensions to guess the good reader/writer.\n"); |
| 60 | print_info ("The supported extension for the point cloud are .pcd .ply and .vtk\n"); |
| 61 | print_info (" where options are:\n"); |
| 62 | print_info (" -radius X = use a leaf size of X,X,X to uniformly select 1 point per leaf (default: "); |
| 63 | print_value ("%f", default_radius); print_info (")\n"); |
| 64 | } |
| 65 | |
| 66 | bool |
| 67 | loadCloud (const std::string &filename, pcl::PCLPointCloud2 &cloud) |