Functions | Variables
sm-cli-main.cpp File Reference

CLI tool to edit, visualize, and get stats from simplemap files. More...

#include <mrpt/3rdparty/tclap/CmdLine.h>
#include <mrpt/core/exceptions.h>
#include <mrpt/system/filesystem.h>
#include <mrpt/system/os.h>
#include <mrpt/maps/registerAllClasses.h>
#include <mrpt/obs/registerAllClasses.h>
#include <iostream>
#include <map>
#include "sm-cli.h"
Include dependency graph for sm-cli-main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
int printListCommands ()
 
void printVersion ()
 
mrpt::maps::CSimpleMap read_input_sm_from_cli (const std::string &inFile)
 
void setConsoleErrorColor ()
 
void setConsoleNormalColor ()
 

Variables

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

Detailed Description

CLI tool to edit, visualize, and get stats from simplemap files.

Author
Jose Luis Blanco Claraco
Date
Feb 7 , 2024

Definition in file sm-cli-main.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 55 of file sm-cli-main.cpp.

◆ printListCommands()

int printListCommands ( )

Definition at line 104 of file sm-cli-main.cpp.

◆ printVersion()

void printVersion ( )

Definition at line 113 of file sm-cli-main.cpp.

◆ read_input_sm_from_cli()

mrpt::maps::CSimpleMap read_input_sm_from_cli ( const std::string &  inFile)

Definition at line 119 of file sm-cli-main.cpp.

◆ setConsoleErrorColor()

void setConsoleErrorColor ( )

Definition at line 43 of file sm-cli-main.cpp.

◆ setConsoleNormalColor()

void setConsoleNormalColor ( )

Definition at line 49 of file sm-cli-main.cpp.

Variable Documentation

◆ cli

std::unique_ptr<cli_flags> cli

Definition at line 29 of file sm-cli-main.cpp.

◆ cliCommands

const std::map<std::string, cmd_t> cliCommands
Initial value:
= {
{"help", cmd_t(&printListCommands)},
{"info", cmd_t(&commandInfo)},
{"export-keyframes", cmd_t(&commandExportKF)},
{"export-rawlog", cmd_t(&commandExportRawlog)},
{"cut", cmd_t(&commandCut)},
{"level", cmd_t(&commandLevel)},
{"trim", cmd_t(&commandTrim)},
{"join", cmd_t(&commandJoin)},
{"tf", cmd_t(&commandTf)},
}

Definition at line 31 of file sm-cli-main.cpp.

commandExportRawlog
int commandExportRawlog()
Definition: sm-cli-export-rawlog.cpp:23
commandCut
int commandCut()
Definition: sm-cli-cut.cpp:17
commandLevel
int commandLevel()
Definition: sm-cli-level.cpp:20
cmd_t
std::function< int(void)> cmd_t
Definition: sm-cli.h:77
commandTf
int commandTf()
Definition: sm-cli-tf.cpp:20
commandTrim
int commandTrim()
Definition: sm-cli-trim.cpp:17
commandInfo
int commandInfo()
Definition: sm-cli-info.cpp:19
commandExportKF
int commandExportKF()
Definition: sm-cli-export-kfs.cpp:20
commandJoin
int commandJoin()
Definition: sm-cli-join.cpp:17
printListCommands
int printListCommands()
Definition: sm-cli-main.cpp:104


mp2p_icp
Author(s):
autogenerated on Wed Oct 23 2024 02:45:41