34 (
"help",
"Prints this help message.")
35 (
"input,i", po::value<std::string>()->required(),
"A Riegl Scan Project directory as input for the converter.")
36 (
"inputformat", po::value<std::string>()->default_value(
"rxp"),
"The input pointcloud type in the riegl project folder to parse. Implemented: rxp, ascii")
37 (
"out,o", po::value<std::string>()->default_value(
"./scan_project"),
"The directory where the converted scan project will be saved.")
38 (
"outformat", po::value<std::string>()->default_value(
"slam6d"),
"The output coordinate space the converted scan project will be saved. Impemented: slam6d, lvr")
39 (
"reduction,r", po::value<unsigned int>()->default_value(1),
"Reduces pointcloud size by importing only every Nth point (1 means no reduction).")
40 (
"start,s", po::value<unsigned int>()->default_value(1),
"skipp the first start-1 scanpositions.")
41 (
"end,e", po::value<unsigned int>()->default_value(0),
"skipp all scanpositions after end")
42 (
"force,f",
"If this is set an already existing file will be overwritten in the output directory.")
52 po::store(po::command_line_parser(argc, argv).
options(
desc).positional(
pod).run(),
vm);
56 std::cout <<
"[Options] Error: " << e.what() <<
'\n' <<
desc <<std::endl;
60 if (
vm.count(
"help")) {
61 std::cout <<
"[Options] Info: " <<
desc << std::endl;
po::options_description desc
const kaboom::Options * options
bool parse(int argc, char **argv)
po::positional_options_description pod
KF_EXPORTS void error(const char *error_string, const char *file, const int line, const char *func="")
Error handler. All GPU functions from this subsystem call the function to report an error...