-
Hello, I hope you are going great. We have a YARP related question again. We need to periodically check if robot is still speaking or not. Therefore we connect to the rpc port
And do this in
The problem is, when the robot is saying a long sentence, Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @paliasgh I'm a bit rusty with YARP and iSpeak but just a quick try for you. yarp::os::RpcClient rpcPort;
// ... (prepare your RPC command)
rpcPort.setTimeout(1.0); // Set 1-second timeout
auto ret = rpcPort.write(cmd, reply);
if (reply.isValid() && ret) {
// Process the 'reply'
} else {
// Handle timeout or error
} |
Beta Was this translation helpful? Give feedback.
My bad. You should be able to get access to it this way:
rpcPort.asPort().setTimeout(1.0);