TOBI plaform iC client program.
#include <string>
#include <iostream>
#include <unistd.h>
#include <tobiplatform/TPiC.hpp>
#include <tobiic/ICMessage.hpp>
#include <tobiic/ICSerializerRapid.hpp>
#include <tobicore/TCTime.hpp>
#define ENDLESS
int main(void) {
#ifdef ENDLESS
while(true) {
#endif
std::cout << "Initializing iC client and trying to plug-in" << std::endl;
#ifdef ENDLESS
std::cout << "Cannot plug iC client: trying in 5 seconds" << std::endl;
continue;
#else
std::cout << "Cannot plug iC client" << std::endl;
return false;
#endif
}
int frame = 1;
while(true) {
break;
std::cout << "iC message sent: " << frame << std::endl;
}
std::cout << "iC server is down" << std::endl;
#ifdef ENDLESS
}
#endif
return 0;
}