1 #include <yarp/os/all.h> 5 if(yarp::os::Network::isConnected(
portRPC.getName(),
"/agentDetector/rpc")) {
8 return yarp::os::Network::connect(
portRPC.getName(),
"/agentDetector/rpc");
23 yarp::os::Bottle bReq, bResp;
24 bReq.addString(
"change_partner_name");
25 bReq.addString(new_name);
28 if(bResp.get(0).asString()==
"ack")
35 yarp::os::Bottle bReq, bResp;
36 bReq.addString(
"pause");
41 yarp::os::Bottle bReq, bResp;
42 bReq.addString(
"resume");
bool changeDefaultName(const std::string &new_name)
Changes the name of the partner within agentDetector Internally used by ICubClient::changeName.
yarp::os::RpcClient portRPC
void resume()
The skeleton detection of agentDetector will be resumed.
#define SUBSYSTEM_AGENTDETECTOR
Abstract class to handle sub-systems of the icub-client.
void pause()
Pause the agentDetector.
SubSystem_agentDetector(const std::string &masterName)
Default constructor.
virtual void Close()
Clean up resources.