Go to the documentation of this file.
12 #include <mrpt/3rdparty/tclap/CmdLine.h>
13 #include <mrpt/maps/CSimpleMap.h>
23 TCLAP::CmdLine
cmd{
"sm-cli",
' ',
"version",
false };
25 TCLAP::UnlabeledMultiArg<std::string>
argCmd{
26 "command",
"Command to run. Run 'sm help' to list commands.",
false,
"",
32 "Verbosity level: ERROR|WARN|INFO|DEBUG (Default: INFO)",
39 "",
"from",
"First KF index",
false, 0,
"KF index",
cmd};
41 TCLAP::ValueArg<size_t>
arg_to{
"",
"to",
"Last KF index",
false, 0,
45 "",
"min-corner",
"Bounding box minimum coordinates",
46 false,
"",
"\"[xmin ymin zmin]\"",
50 "",
"max-corner",
"Bounding box maximum coordinates",
51 false,
"",
"\"[xmax ymax zmax]\"",
55 "o",
"output",
"Output file",
false,
"output",
"output",
cmd};
60 "Output file for twist (linear and angular velocity). Output file will "
61 "contain one row per frame, with these fields: "
62 "'time vx vy vz wx wy wz'",
69 "h",
"help",
"Shows more detailed help for command",
cmd};
72 "",
"version",
"Shows program version and exits",
cmd};
75 extern std::unique_ptr<cli_flags>
cli;
77 using cmd_t = std::function<int(
void)>;
TCLAP::ValueArg< std::string > arg_output
TCLAP::ValueArg< std::string > arg_verbosity_level
TCLAP::ValueArg< size_t > arg_to
void setConsoleNormalColor()
std::function< int(void)> cmd_t
TCLAP::ValueArg< std::string > arg_min_corner
TCLAP::SwitchArg argVersion
TCLAP::ValueArg< std::string > arg_max_corner
TCLAP::ValueArg< size_t > arg_from
std::unique_ptr< cli_flags > cli
TCLAP::UnlabeledMultiArg< std::string > argCmd
int commandExportRawlog()
TCLAP::ValueArg< std::string > arg_output_twist
void setConsoleErrorColor()
mrpt::maps::CSimpleMap read_input_sm_from_cli(const std::string &fil)
mp2p_icp
Author(s):
autogenerated on Wed Oct 23 2024 02:45:41