Go to the documentation of this file.
6 #include "../package_registry.h"
13 #include <fmt/format.h>
15 template<
typename... Args>
16 std::runtime_error
error(
const char* format,
const Args& ... args)
18 std::string msg = fmt::format(format, args...);
19 return std::runtime_error(msg);
28 Node::Node(std::string name, std::string package, std::string type)
29 : m_name(
std::move(name))
31 , m_type(
std::move(type))
39 , m_coredumpsEnabled(true)
40 , m_clearParams(false)
42 , m_memoryLimitByte(15e6)
45 , m_stdoutDisplayed(true)
60 std::string
clean = argString;
63 if(c ==
'\n' || c ==
'\r')
70 int ret = wordexp(
clean.c_str(), &tokens, WRDE_NOCMD);
72 throw error(
"You're supplying something strange in 'args': '{}' (wordexp ret {})",
clean, ret);
74 for(
unsigned int i = 0; i < tokens.we_wordc; ++i)
123 if(c ==
'\n' || c ==
'\r')
130 int ret = wordexp(
clean.c_str(), &tokens, WRDE_NOCMD);
132 throw error(
"You're supplying something strange in 'launch-prefix': '{}' (wordexp ret {})",
clean, ret);
134 for(
unsigned int i = 0; i < tokens.we_wordc; ++i)
void setRemappings(const std::map< std::string, std::string > &remappings)
std::map< std::string, std::string > m_remappings
void setNumRespawnsAllowed(int numRespawnsAllowed)
void setSpawnDelay(const ros::WallDuration &spawnDelay)
void setStopTimeout(double timeout)
ros::WallDuration respawnDelay() const
void setMuted(bool muted)
void setNamespace(const std::string &ns)
ROSCPP_DECL std::string clean(const std::string &name)
void setClearParams(bool on)
std::map< std::string, std::string > m_extraEnvironment
ros::WallDuration m_respawnDelay
void setRespawnDelay(const ros::WallDuration &respawnDelay)
void setExtraEnvironment(const std::map< std::string, std::string > &env)
ros::WallDuration spawnDelay() const
std::runtime_error error(const char *format, const Args &... args)
uint64_t m_memoryLimitByte
uint64_t memoryLimitByte() const
void setCPULimit(double cpuLimit)
std::vector< std::string > m_launchPrefix
void addExtraArguments(const std::string &argString)
void setRespawn(bool respawn)
std::string m_workingDirectory
ros::WallDuration m_spawnDelay
void setLaunchPrefix(const std::string &launchPrefix)
std::vector< std::string > launchPrefix() const
std::string env(const std::string &name)
int numRespawnsAllowed() const
void setWorkingDirectory(const std::string &workingDirectory)
std::vector< std::string > m_extraArgs
static std::string getExecutable(const std::string &package, const std::string &name)
Node(std::string name, std::string package, std::string type)
void setRequired(bool required)
void setStdoutDisplayed(bool showStdout)
std::map< std::string, std::string > remappings() const
void setCoredumpsEnabled(bool on)
void setMemoryLimit(uint64_t memoryLimitByte)
rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Feb 21 2024 04:01:14