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 <mrpt/version.h>
#include <mvsim/mvsim_version.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 ()
 
void printVersion ()
 
void setConsoleErrorColor ()
 
void setConsoleNormalColor ()
 

Variables

std::unique_ptr< cli_flagscli
 
const std::map< std::string, cmd_tcliCommands
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

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

◆ printListCommands()

int printListCommands ( )

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

◆ printVersion()

void printVersion ( )

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

◆ setConsoleErrorColor()

void setConsoleErrorColor ( )

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

◆ setConsoleNormalColor()

void setConsoleNormalColor ( )

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

Variable Documentation

◆ cli

std::unique_ptr<cli_flags> cli

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

◆ cliCommands

const std::map<std::string, cmd_t> cliCommands
Initial value:
= {
{"launch", cmd_t(&launchSimulation)}, {"node", cmd_t(&commandNode)},
{"topic", cmd_t(&commandTopic)},
}

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

launchStandAloneServer
int launchStandAloneServer()
Definition: mvsim-cli-server.cpp:40
printListCommands
int printListCommands()
Definition: mvsim-cli-main.cpp:98
launchSimulation
int launchSimulation()
Definition: mvsim-cli-launch.cpp:161
commandNode
int commandNode()
Definition: mvsim-cli-node.cpp:25
cmd_t
std::function< int(void)> cmd_t
Definition: mvsim-cli.h:65
commandTopic
int commandTopic()
Definition: mvsim-cli-topic.cpp:34


mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:09