An example of how to create a source of images as a port.
int main(
int argc,
char* argv[])
{
BufferedPort<ImageOf<PixelRgb>> port;
Property options;
options.fromCommand(argc, argv);
port.open(options.check("name", Value("/image")).asString());
size_t ct = 0;
while (true) {
ImageOf<PixelRgb>& img = port.prepare();
img.resize(100, 100);
img.zero();
PixelRgb blue{0, 0, 255};
ct = (ct + 5) % 100;
port.write();
constexpr double loop_delay = 0.25;
}
return 0;
}
A mini-server for performing network communication in the background.
Utilities for manipulating the YARP network, including initialization and shutdown.
A class for storing options and configuration information.
A single value (typically within a Bottle).
void delay(double seconds)
Wait for a certain number of seconds.
void addCircle(ImageOf< T > &dest, const T &pix, int i, int j, int r)
The main, catch-all namespace for YARP.
int main(int argc, char *argv[])