16 #include <yarp/os/all.h>
20 using namespace yarp::os;
24 BufferedPort<Bottle>
inPort;
27 BufferedPort<Bottle> outPort;
28 outPort.open(
"/relay/out");
31 cout <<
"waiting for input" << endl;
32 Bottle *input =
inPort.read();
35 Bottle& output = outPort.prepare();
38 cout <<
"writing " << output.toString() << endl;
Copyright (C) 2008 RobotCub Consortium.
int main(int argc, char **argv)