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,
"",
cmd};
29 "v",
"verbosity",
"Verbosity level: ERROR|WARN|INFO|DEBUG (Default: INFO)",
false,
"",
32 TCLAP::ValueArg<size_t>
arg_from{
"",
"from",
"First KF index",
false, 0,
"KF index",
cmd};
34 TCLAP::ValueArg<size_t>
arg_to{
"",
"to",
"Last KF index",
false, 0,
"KF index",
cmd};
37 "",
"min-corner",
"Bounding box minimum coordinates",
false,
"",
"\"[xmin ymin zmin]\"",
41 "",
"max-corner",
"Bounding box maximum coordinates",
false,
"",
"\"[xmax ymax zmax]\"",
44 TCLAP::ValueArg<std::string>
arg_output{
"o",
"output",
"Output file",
false,
"output",
50 "Output file for twist (linear and angular velocity). Output file will "
51 "contain one row per frame, with these fields: "
52 "'time vx vy vz wx wy wz'",
58 TCLAP::SwitchArg
argHelp{
"h",
"help",
"Shows more detailed help for command",
cmd};
60 TCLAP::SwitchArg
argVersion{
"",
"version",
"Shows program version and exits",
cmd};
63 extern std::unique_ptr<cli_flags>
cli;
65 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 Mon May 26 2025 02:45:50