21 #include <yarp/os/all.h> 41 period=rf.check(
"period",Value(0.05)).asDouble();
44 yError() <<
" iCubClient : Some dependencies are not running (OPC?)...";
48 rpcPort.open(
"/exampleDependency/rpc");
69 int cmd=command.get(0).asVocab();
70 int ack=Vocab::encode(
"ack");
71 int nack=Vocab::encode(
"nack");
73 if (cmd==Vocab::encode(
"lookAtPartner"))
80 return RFModule::respond(command,reply);
105 if (!yarp.checkNetwork()) {
106 yError()<<
"YARP network seems unavailable!";
111 rf.configure(argc,argv);
114 return example.runModule(rf);
Grants access to high level motor commands (grasp, touch, look, goto, etc) of the robot as well as it...
bool connect(const std::string &opcName="OPC")
Try to connect all functionalities.
bool respond(const Bottle &command, Bottle &reply)
bool lookAtPartner()
Looks at the agent if present in the scene.
bool configure(ResourceFinder &rf)
void close()
Properly closes all ports which were opened.
void interrupt()
Interrupt communications of the client ports.