1 #include <yarp/os/all.h> 5 if(yarp::os::Network::isConnected(
portRPC.getName(),
"/babbling/rpc")) {
8 return yarp::os::Network::connect(
portRPC.getName(),
"/babbling/rpc");
23 yarp::os::Bottle bReq, bResp;
24 bReq.addString(
"babbling");
25 bReq.addString(babblingLimb);
28 yInfo() <<
"Babbling with specific train_duration: " << duration;
29 bReq.addDouble(duration);
33 return bResp.get(0).asBool();
37 yarp::os::Bottle bReq, bResp;
38 bReq.addString(
"babbling");
39 bReq.addString(
"joint");
40 bReq.addInt(jointNumber);
41 bReq.addString(babblingLimb);
43 yInfo() <<
"Babbling with specific duration: " << duration;
44 bReq.addDouble(duration);
48 return bResp.get(0).asBool();
yarp::os::RpcClient portRPC
virtual void Close()
Clean up resources.
bool babblingArm(const std::string &babblingLimb, double duration=-1.0)
Whole arm babbling.
bool babbling(int jointNumber, const std::string &babblingLimb, double duration=-1.0)
Single joint babbling.
Abstract class to handle sub-systems of the icub-client.
#define SUBSYSTEM_BABBLING
SubSystem_babbling(const std::string &masterName)
Default constructor.