YARP  2.3.68+220-20170323.2+git4955ef0
Yet Another Robot Platform

View countdown messages coming from a port (paired with os/make_count.cpp example).

* Copyright: (C) 2010 RobotCub Consortium
* Author: Paul Fitzpatrick
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
#include <yarp/os/all.h>
#include <stdio.h>
using namespace yarp::os;
int main(int argc, char *argv[]) {
if (argc!=2) return 1;
int count = 1;
while (count>0) {
Bottle *msg = in.read();
count = msg->get(1).asInt();
printf("at %d\n", count);
return 0;