Sequential, parallel call: proxy.h
Create a proxy allows to find a module (a C++ object) in current process or on network. Proxy makes independant module search and module's method execution. Once proxy is created, we call module's method without thinking local or remote. Proxy goal is to manage cpu limitation and allows to move function on robot, on process, on server without changing source code.
C++ ALProxy.h API
Method | Description |
---|---|
ALProxy(std::string Module) | Constructor to call in local/remote module |
ALProxy(std::string Module, std::string IP, int port) | Constructor to call in remote module. Proxy will never make LPC |
callVoid(parameters) | Call method without return value |
call<type>("method", parameters) | Call method with type return value |
pCall("method", parameters) | Call method in another thread |