Functions | Variables
mvsim-cli-main.cpp File Reference
#include <mrpt/3rdparty/tclap/CmdLine.h>
#include <mrpt/core/exceptions.h>
#include <mrpt/system/CTicTac.h>
#include <mrpt/system/os.h>
#include <chrono>
#include <iostream>
#include <map>
#include "mvsim-cli.h"
Include dependency graph for mvsim-cli-main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
int printListCommands ()
 

Variables

TCLAP::UnlabeledMultiArg< std::stringargCmd ("command","Command to run. Run 'mvsim help' to list commands.", false,"", cmd)
 
TCLAP::SwitchArg argDetails ("","details","Shows details in the specified subcommand", cmd)
 
TCLAP::SwitchArg argHelp ("h","help","Shows more detailed help for command", cmd)
 
TCLAP::ValueArg< std::stringargVerbosity ("v","verbose","Verbosity level", false,"INFO","ERROR|WARN|INFO|DEBUG", cmd)
 
static const std::map< std::string, cmd_tcliCommands
 
TCLAP::CmdLine cmd ("mvsim", ' ',"version", false)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file mvsim-cli-main.cpp.

int printListCommands ( )

Definition at line 85 of file mvsim-cli-main.cpp.

Variable Documentation

TCLAP::UnlabeledMultiArg<std::string> argCmd("command","Command to run. Run 'mvsim help' to list commands.", false,"", cmd)
TCLAP::SwitchArg argDetails("","details","Shows details in the specified subcommand", cmd)
TCLAP::SwitchArg argHelp("h","help","Shows more detailed help for command", cmd)
TCLAP::ValueArg<std::string> argVerbosity("v","verbose","Verbosity level", false,"INFO","ERROR|WARN|INFO|DEBUG", cmd)
const std::map<std::string, cmd_t> cliCommands
static
Initial value:
= {
{"help", cmd_t(&printListCommands)},
{"launch", cmd_t(&launchSimulation)},
{"node", cmd_t(&commandNode)},
{"topic", cmd_t(&commandTopic)},
}
int commandNode()
std::function< int(void)> cmd_t
Definition: mvsim-cli.h:23
int launchStandAloneServer()
int launchSimulation()
int printListCommands()
int commandTopic()

Definition at line 39 of file mvsim-cli-main.cpp.

TCLAP::CmdLine cmd("mvsim", ' ',"version", false)


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:51