Simplify the design of your computer vision applications
Streams describe the connection between two items. For example, the main stream of the roviz framework is the image stream. It transports objects of type Image from one item to another. If you would like to transport your own type with a stream, all you have to do is the following:
streams/stream_object.h)static QWidget *initWidget(OutputPrivate *out); functionnullptr. Make sure you enclose it with a #ifndef ROVIZ_BACKEND == ROVIZ_BACKEND_Dev ... #endif block, because that part only works with the ‘Dev’ backend. The out parameter refers to the output that will be associated with this stream. You should should use it to call OutputPrivate::connect to get notified when new data should be displayed (see OutputPrivate::connect).usercore/include/streams/template_decl.hDO_FOR_ALL_STREAMS macro in usercore/include/core/template_decl.h. Also make sure that you declare your class in that file (class YourClass;), just like the existing streams do.usercore/src/backend_dev/startup_init.cpp file. The color is a QColor, see the Qt documentation for that.usercore/include/streams/all_streams.hstreams/all_streams.h. Just add a line where you include the header of your class.Now you’re ready to go! Rebuild roviz with qmake and make.