1 #include <yarp/os/all.h> 5 if(yarp::os::Network::isConnected(
portRPC.getName(),
"/iol2opc/rpc")) {
8 return yarp::os::Network::connect(
portRPC.getName(),
"/iol2opc/rpc");
23 yarp::os::Bottle bReq, bResp;
24 bReq.addString(
"change_name");
25 bReq.addString(old_name);
26 bReq.addString(new_name);
29 return bResp.get(0).asBool();
33 yarp::os::Bottle bReq, bResp;
34 bReq.addString(
"pause");
39 yarp::os::Bottle bReq, bResp;
40 bReq.addString(
"resume");
yarp::os::RpcClient portRPC
SubSystem_IOL2OPC(const std::string &masterName)
Default constructor.
bool changeName(const std::string &old_name, const std::string &new_name)
Change the name of an object Internally used by ICubClient::changeName.
Abstract class to handle sub-systems of the icub-client.
void pause()
Pause the iol2opc object detection.
virtual void Close()
Clean up resources.
void resume()
Resume the iol2opc object detection.
#define SUBSYSTEM_IOL2OPC