Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
rosmon::launch Namespace Reference

Namespaces

 string_utils
 
 substitutions
 

Classes

class  LaunchConfig
 
class  Node
 
class  ParseContext
 
class  ParseException
 
class  SubstitutionException
 

Typedefs

using Handler = std::function< std::string(const std::string &, const std::string &)>
 
using HandlerMap = std::map< std::string, Handler >
 

Enumerations

enum  ParserState { PARSER_IDLE, PARSER_DOLLAR, PARSER_INSIDE }
 

Functions

static XmlRpc::XmlRpcValue autoXmlRpcValue (const std::string &fullValue)
 
std::string evaluatePython (const std::string &input, ParseContext &context)
 Evaluate a $(eval ...) python expression. More...
 
double evaluateROSParamPython (const std::string &input)
 Evaluate a deg(...) rosparam expression. More...
 
std::tuple< uint64_t, bool > parseMemory (const std::string &memory)
 
static std::string parseOneElement (const std::string &input, const HandlerMap &handlers, bool strict, bool *found)
 
std::string parseSubstitutionArgs (const std::string &input, ParseContext &context)
 
template<class Iterator >
void safeAdvance (Iterator &it, const Iterator &end, size_t i)
 
XmlRpc::XmlRpcValue yamlToXmlRpc (const ParseContext &ctx, const YAML::Node &n)
 

Variables

constexpr double DEFAULT_CPU_LIMIT = 0.9f
 
constexpr uint64_t DEFAULT_MEMORY_LIMIT = 500*1024*1024
 
constexpr double DEFAULT_STOP_TIMEOUT = 5.0f
 
const char * UNSET_MARKER = "~~~~~ ROSMON-UNSET ~~~~~"
 

Typedef Documentation

using rosmon::launch::Handler = typedef std::function<std::string(const std::string&, const std::string&)>

Definition at line 23 of file substitution.cpp.

using rosmon::launch::HandlerMap = typedef std::map<std::string, Handler>

Definition at line 24 of file substitution.cpp.

Enumeration Type Documentation

Enumerator
PARSER_IDLE 
PARSER_DOLLAR 
PARSER_INSIDE 

Definition at line 26 of file substitution.cpp.

Function Documentation

static XmlRpc::XmlRpcValue rosmon::launch::autoXmlRpcValue ( const std::string &  fullValue)
static

Definition at line 505 of file launch_config.cpp.

std::string rosmon::launch::evaluatePython ( const std::string &  input,
ParseContext context 
)

Evaluate a $(eval ...) python expression.

Definition at line 281 of file substitution_python.cpp.

double rosmon::launch::evaluateROSParamPython ( const std::string &  input)

Evaluate a deg(...) rosparam expression.

Definition at line 288 of file substitution_python.cpp.

std::tuple< uint64_t, bool > rosmon::launch::parseMemory ( const std::string &  memory)

Note: this uses 1 KB == 1000 Byte.

Returns
Tuple memory in bytes and success

Definition at line 18 of file bytes_parser.cpp.

static std::string rosmon::launch::parseOneElement ( const std::string &  input,
const HandlerMap handlers,
bool  strict,
bool *  found 
)
static

Definition at line 95 of file substitution.cpp.

std::string rosmon::launch::parseSubstitutionArgs ( const std::string &  input,
ParseContext context 
)

Definition at line 166 of file substitution.cpp.

template<class Iterator >
void rosmon::launch::safeAdvance ( Iterator &  it,
const Iterator &  end,
size_t  i 
)

Definition at line 1119 of file launch_config.cpp.

XmlRpc::XmlRpcValue rosmon::launch::yamlToXmlRpc ( const ParseContext ctx,
const YAML::Node &  n 
)

Definition at line 40 of file yaml_params.cpp.

Variable Documentation

constexpr double rosmon::launch::DEFAULT_CPU_LIMIT = 0.9f

Definition at line 28 of file launch_config.h.

constexpr uint64_t rosmon::launch::DEFAULT_MEMORY_LIMIT = 500*1024*1024

Definition at line 29 of file launch_config.h.

constexpr double rosmon::launch::DEFAULT_STOP_TIMEOUT = 5.0f

Definition at line 30 of file launch_config.h.

const char * rosmon::launch::UNSET_MARKER = "~~~~~ ROSMON-UNSET ~~~~~"

Definition at line 32 of file launch_config.cpp.



rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43