|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_MANAGER
10 #define YARP_MANAGER_MANAGER
27 Manager(
bool withWatchDog=
false);
28 Manager(
const char* szModPath,
const char* szAppPath,
29 const char* szResPath,
bool withWatchDog=
false);
32 bool addApplication(
const char* szFileName,
char** szAppName_=
nullptr,
bool modifyName=
false);
44 bool saveApplication(
const char* szAppName,
const char* fileName=
nullptr);
46 const char* szhost,
const char* szstdio,
47 const char* szworkdir,
const char* szenv );
49 const char* to,
const char* carrier);
54 bool run(
unsigned int id,
bool async=
false);
56 bool stop(
unsigned int id,
bool async=
false);
58 bool kill(
unsigned int id,
bool async=
false);
72 bool exist(
unsigned int id);
84 void setDefaultBroker(
const char* szBroker) {
if(szBroker) { strDefBroker = szBroker; } }
117 void onError(
void* which)
override;
123 bool bAutoDependancy;
127 std::string strAppName;
128 std::string strDefBroker;
130 std::vector<std::string> listOfXml;
138 bool createKnowledgeBase(
AppLoader &appLoader);
139 void clearExecutables();
141 bool connectExtraPorts();
142 bool checkPortsAvailable(
Broker* broker);
146 bool prepare(
bool silent=
true);
147 bool timeout(
double base,
double t);
157 #endif // __YARP_MANAGER_MANAGER__
ResourcePContainer & getResources()
void enableAutoDependency()
bool removeModule(const char *szModName)
bool addApplication(const char *szFileName, char **szAppName_=nullptr, bool modifyName=false)
void disableRestrictedMode()
bool removeResource(const char *szResName)
void onExecutableDied(void *which) override
std::vector< Connection > CnnContainer
bool exportDependencyGraph(const char *szFileName)
void onExecutableStdout(void *which, const char *msg) override
bool addModule(const char *szFileName)
bool loadApplication(const char *szAppName)
Manager(bool withWatchDog=false)
Class Manager.
void onCnnFailed(void *which) override
void onExecutableStart(void *which) override
Singleton class ErrorLogger.
bool addResources(const char *szPath)
void onExecutableStop(void *which) override
std::vector< GenericResource * > ResourcePContainer
bool switchBroker(size_t id)
void onExecutableFailed(void *which) override
bool addModules(const char *szPath)
bool existPortFrom(unsigned int id)
bool addResource(const char *szFileName)
bool saveApplication(const char *szAppName, const char *fileName=nullptr)
bool exist(unsigned int id)
bool detachStdout(unsigned int id)
bool updateConnection(unsigned int id, const char *from, const char *to, const char *carrier)
bool removeApplication(const char *szFileName, const char *szAppName)
ExecutablePContainer & getExecutables()
bool existPortTo(unsigned int id)
bool attachStdout(unsigned int id)
bool waitingModuleKill(unsigned int id)
bool exportAppGraph(const char *szFileName)
bool addApplications(const char *szPath)
bool waitingModuleStop(unsigned int id)
void onError(void *which) override
bool waitingModuleRun(unsigned int id)
Executable * getExecutableById(size_t id)
bool updateExecutable(unsigned int id, const char *szparam, const char *szhost, const char *szstdio, const char *szworkdir, const char *szenv)
KnowledgeBase * getKnowledgeBase()
void enableRestrictedMode()
bool updateResource(const char *szName)
void setDefaultBroker(const char *szBroker)
The main, catch-all namespace for YARP.
void disableAutoDependency()
const char * defaultBroker()
std::vector< Module * > ModulePContainer
std::vector< Executable * > ExecutablePContainer
ErrorLogger * getLogger()
const char * getApplicationName()
CnnContainer & getConnections()
Abstract Class AppLoader.
void disableAutoConnect()
Node * getNode(std::string appName)
void onCnnStablished(void *which) override