YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ymanager.cpp File Reference
#include "ymanager.h"
#include <yarp/manager/xmlapploader.h>
#include <yarp/manager/application.h>
#include <dirent.h>
#include <yarp/conf/filesystem.h>
#include <yarp/os/ResourceFinder.h>
#include <sstream>
#include <cstring>
#include <csignal>
#include <unistd.h>
#include <cerrno>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/prctl.h>
+ Include dependency graph for ymanager.cpp:

Go to the source code of this file.

Macros

#define CMD_COUNTS   24
 
#define DEF_CONFIG_FILE   "ymanager.ini"
 
#define LOGO_MESSAGE   "\__ __\n\\\ \\ / / __ ___ __ _ _ __ __ _ __ _ ___ _ __ \n\ \\ V / '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|\n\ | || | | | | | (_| | | | | (_| | (_| | __/ |\n\ |_||_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|\n\ |___/"
 
#define WELCOME_MESSAGE   "type \"help\" for more information."
 
#define VERSION_MESSAGE   "Version 1.1"
 
#define HELP_MESSAGE   "\Usage:\n\ yarpmanager-console [option...]\n\n\Options:\n\ --application <app> Load a specific application identified by its xml file\n\ --run Run the current application (should be used with --application)\n\ --stop Stop the current application (should be used with --application)\n\ --kill Kill the current application (should be used with --application)\n\ --connect Connect all connections from the current application (should be used with --application)\n\ --disconnect Disconnect all connections from the current application (should be used with --application)\n\ --assign_hosts Automatically assign modules to proper nodes using load balancer. (should be used with --application)\n\ --check_dep Check for all resource dependencies of the current application (should be used with --application)\n\ --check_state Check for running state of modules of the current application (should be used with --application) \n\ --check_con Check the connections states of the of the current application (should be used with --application)\n\ --silent Do not print the status messages (should be used with --application)\n\ --exit Immediately exit after executing the commands (should be used with --application)\n\ --from <conf> Configuration file name\n\ --elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\ --version Show current version\n\ --help Show help\n"
 

Functions

bool isAbsolute (const char *path)
 

Variables

std::string HEADER
 
std::string OKBLUE
 
std::string OKGREEN
 
std::string WARNING
 
std::string FAIL
 
std::string INFO
 
std::string ENDC
 

Macro Definition Documentation

◆ CMD_COUNTS

#define CMD_COUNTS   24

Definition at line 56 of file ymanager.cpp.

◆ DEF_CONFIG_FILE

#define DEF_CONFIG_FILE   "ymanager.ini"

Definition at line 70 of file ymanager.cpp.

◆ HELP_MESSAGE

#define HELP_MESSAGE   "\Usage:\n\ yarpmanager-console [option...]\n\n\Options:\n\ --application <app> Load a specific application identified by its xml file\n\ --run Run the current application (should be used with --application)\n\ --stop Stop the current application (should be used with --application)\n\ --kill Kill the current application (should be used with --application)\n\ --connect Connect all connections from the current application (should be used with --application)\n\ --disconnect Disconnect all connections from the current application (should be used with --application)\n\ --assign_hosts Automatically assign modules to proper nodes using load balancer. (should be used with --application)\n\ --check_dep Check for all resource dependencies of the current application (should be used with --application)\n\ --check_state Check for running state of modules of the current application (should be used with --application) \n\ --check_con Check the connections states of the of the current application (should be used with --application)\n\ --silent Do not print the status messages (should be used with --application)\n\ --exit Immediately exit after executing the commands (should be used with --application)\n\ --from <conf> Configuration file name\n\ --elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\ --version Show current version\n\ --help Show help\n"

Definition at line 83 of file ymanager.cpp.

◆ LOGO_MESSAGE

#define LOGO_MESSAGE   "\__ __\n\\\ \\ / / __ ___ __ _ _ __ __ _ __ _ ___ _ __ \n\ \\ V / '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|\n\ | || | | | | | (_| | | | | (_| | (_| | __/ |\n\ |_||_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|\n\ |___/"

Definition at line 72 of file ymanager.cpp.

◆ VERSION_MESSAGE

#define VERSION_MESSAGE   "Version 1.1"

Definition at line 81 of file ymanager.cpp.

◆ WELCOME_MESSAGE

#define WELCOME_MESSAGE   "type \"help\" for more information."

Definition at line 80 of file ymanager.cpp.

Function Documentation

◆ isAbsolute()

bool isAbsolute ( const char path)

Definition at line 109 of file ymanager.cpp.

Variable Documentation

◆ ENDC

std::string ENDC

Definition at line 52 of file ymanager.cpp.

◆ FAIL

std::string FAIL

Definition at line 50 of file ymanager.cpp.

◆ HEADER

std::string HEADER

Definition at line 46 of file ymanager.cpp.

◆ INFO

std::string INFO

Definition at line 51 of file ymanager.cpp.

◆ OKBLUE

std::string OKBLUE

Definition at line 47 of file ymanager.cpp.

◆ OKGREEN

std::string OKGREEN

Definition at line 48 of file ymanager.cpp.

◆ WARNING

std::string WARNING

Definition at line 49 of file ymanager.cpp.