Enumerations | Functions | Variables
main.cpp File Reference
#include <ros/init.h>
#include <ros/master.h>
#include <ros/rate.h>
#include <ros/node_handle.h>
#include <ros/package.h>
#include <ros/console_backend.h>
#include <ros/this_node.h>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <unistd.h>
#include <getopt.h>
#include <csignal>
#include <iostream>
#include <fmt/format.h>
#include "launch/launch_config.h"
#include "launch/bytes_parser.h"
#include "monitor/monitor.h"
#include "ui.h"
#include "ros_interface.h"
#include "package_registry.h"
#include "fd_watcher.h"
#include "logger.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Enumerations

enum  Action { ACTION_LAUNCH, ACTION_BENCHMARK, ACTION_LIST_ARGS }
 

Functions

static fs::path findFile (const fs::path &base, const std::string &name)
 
void handleSignal (int)
 
void logToStdout (const std::string &channel, const std::string &str)
 
int main (int argc, char **argv)
 
void usage ()
 

Variables

bool g_flushStdout = false
 
bool g_shouldStop = false
 
static const struct option OPTIONS []
 

Enumeration Type Documentation

enum Action
Enumerator
ACTION_LAUNCH 
ACTION_BENCHMARK 
ACTION_LIST_ARGS 

Definition at line 137 of file main.cpp.

Function Documentation

static fs::path findFile ( const fs::path &  base,
const std::string &  name 
)
static

Definition at line 37 of file main.cpp.

void handleSignal ( int  )

Definition at line 98 of file main.cpp.

void logToStdout ( const std::string &  channel,
const std::string &  str 
)

Definition at line 103 of file main.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 143 of file main.cpp.

void usage ( )

Definition at line 54 of file main.cpp.

Variable Documentation

bool g_flushStdout = false

Definition at line 35 of file main.cpp.

bool g_shouldStop = false

Definition at line 34 of file main.cpp.

const struct option OPTIONS[]
static
Initial value:
= {
{"disable-ui", no_argument, nullptr, 'd'},
{"benchmark", no_argument, nullptr, 'b'},
{"flush-log", no_argument, nullptr, 'f'},
{"flush-stdout", no_argument, nullptr, 'F'},
{"help", no_argument, nullptr, 'h'},
{"list-args", no_argument, nullptr, 'L'},
{"log", required_argument, nullptr, 'l'},
{"name", required_argument, nullptr, 'n'},
{"no-start", no_argument, nullptr, 'S'},
{"stop-timeout", required_argument, nullptr, 's'},
{"disable-diagnostics", no_argument, nullptr, 'D'},
{"cpu-limit", required_argument, nullptr, 'c'},
{"memory-limit", required_argument, nullptr, 'm'},
{"diagnostics-prefix", required_argument, nullptr, 'p'},
{nullptr, 0, nullptr, 0}
}

Definition at line 119 of file main.cpp.



rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Jul 10 2019 03:10:12