Go to the documentation of this file.
12 #include <mrpt/3rdparty/tclap/CmdLine.h>
13 #if defined(MVSIM_HAS_ZMQ) && defined(MVSIM_HAS_PROTOBUF)
24 TCLAP::CmdLine
cmd{
"mvsim",
' ',
"version",
false };
26 TCLAP::UnlabeledMultiArg<std::string>
argCmd{
27 "command",
"Command to run. Run 'mvsim help' to list commands.",
false,
"",
cmd};
30 "v",
"verbose",
"Verbosity level",
false,
"INFO",
"ERROR|WARN|INFO|DEBUG",
cmd};
34 "Enable saving *all* timing data, dumping it to a file at the end of "
39 TCLAP::SwitchArg
argHeadless{
"",
"headless",
"Runs the simulator without any GUI window.",
cmd};
41 TCLAP::SwitchArg
argDetails{
"",
"details",
"Shows details in the specified subcommand",
cmd};
43 TCLAP::SwitchArg
argVersion{
"",
"version",
"Shows program version and exits",
cmd};
45 TCLAP::SwitchArg
argHelp{
"h",
"help",
"Shows more detailed help for command",
cmd};
47 #if defined(MVSIM_HAS_ZMQ) && defined(MVSIM_HAS_PROTOBUF)
48 TCLAP::ValueArg<int> argPort{
55 "Realtime modification factor: <1 slower than real-time, >1 faster "
63 extern std::unique_ptr<cli_flags>
cli;
65 using cmd_t = std::function<int(
void)>;
std::unique_ptr< cli_flags > cli
void commonLaunchServer()
int launchStandAloneServer()
TCLAP::ValueArg< std::string > argVerbosity
TCLAP::SwitchArg argFullProfiler
TCLAP::SwitchArg argVersion
constexpr unsigned int MVSIM_PORTNO_MAIN_REP
std::function< int(void)> cmd_t
TCLAP::SwitchArg argHeadless
TCLAP::UnlabeledMultiArg< std::string > argCmd
void setConsoleNormalColor()
void setConsoleErrorColor()
TCLAP::ValueArg< double > argRealTimeFactor
TCLAP::SwitchArg argDetails
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08