| 187 | constexpr float default_leaf_size = 0.01f; |
| 188 | |
| 189 | void |
| 190 | printHelp (int, char **argv) |
| 191 | { |
| 192 | print_error ("Syntax is: %s input.{ply,obj} output.pcd <options>\n", argv[0]); |
| 193 | print_info (" where options are:\n"); |
| 194 | print_info (" -n_samples X = number of samples (default: "); |
| 195 | print_value ("%d", default_number_samples); |
| 196 | print_info (")\n"); |
| 197 | print_info ( |
| 198 | " -leaf_size X = the XYZ leaf size for the VoxelGrid -- for data reduction (default: "); |
| 199 | print_value ("%f", default_leaf_size); |
| 200 | print_info (" m)\n"); |
| 201 | print_info (" -write_normals = flag to write normals to the output pcd\n"); |
| 202 | print_info (" -write_colors = flag to write colors to the output pcd\n"); |
| 203 | print_info ( |
| 204 | " -no_vis_result = flag to stop visualizing the generated pcd\n"); |
| 205 | } |
| 206 | |
| 207 | /* ---[ */ |
| 208 | int |