Part of a series of examples on the different ways of using ports. See Port power tutorial.
#include <stdio.h>
Port p;
p.open("/in");
Bottle in, out;
while (true) {
p.read(in,true);
printf("Got %s\n", in.toString().c_str());
out.clear();
out.addString("acknowledge");
out.append(in);
p.reply(out);
}
}
An interface to the operating system, including Port based communication.
The main, catch-all namespace for YARP.
int main(int argc, char *argv[])