This outputs some data to a port.
This outputs some data to a port.Designed to be used with os/simple_receiver/simple_receiver.cpp example.
#include <cstdio>
constexpr double loop_delay = 1.0;
constexpr size_t top = 100;
int main(int argc, char* argv[])
{
Port output;
output.open("/sender");
for (size_t i = 1; i <= top; i++) {
Bottle bot;
bot.addString("testing");
bot.addInt32(i);
bot.addString("of");
bot.addInt32(top);
output.write(bot);
printf("Sent message: %s\n", bot.toString().c_str());
}
output.close();
return 0;
}
A simple collection of objects that can be described and transmitted in a portable way.
Utilities for manipulating the YARP network, including initialization and shutdown.
A mini-server for network communication.
void delay(double seconds)
Wait for a certain number of seconds.
The main, catch-all namespace for YARP.