6#ifndef YARP_DEV_RGBDSENSORCLIENT_RGBDSENSORCLIENT_STREAMINGMSGPARSER_H
7#define YARP_DEV_RGBDSENSORCLIENT_RGBDSENSORCLIENT_STREAMINGMSGPARSER_H
24 double local_arrival_time {0.0};
27 mutable std::mutex mutex;
35 std::tuple<bool, yarp::sig::FlexImage, yarp::os::Stamp>
getImage()
const;
43 double local_arrival_time {0.0};
46 mutable std::mutex mutex;
FloatImageBufferedPort()=default
~FloatImageBufferedPort() override=default
void onRead(yarp::sig::ImageOf< yarp::sig::PixelFloat > &datum) override
std::tuple< bool, yarp::sig::ImageOf< yarp::sig::PixelFloat >, yarp::os::Stamp > getImage() const
RGBDSensor_StreamingMsgParser()=default
bool read(yarp::sig::FlexImage &rgbImage, yarp::sig::ImageOf< yarp::sig::PixelFloat > &depthImage, yarp::os::Stamp *rgbStamp=nullptr, yarp::os::Stamp *depthStamp=nullptr)
void attach(RgbImageBufferedPort *_port_rgb, FloatImageBufferedPort *_port_depth)
bool readDepth(yarp::sig::ImageOf< yarp::sig::PixelFloat > &data, yarp::os::Stamp *timeStamp=nullptr)
bool readRgb(yarp::sig::FlexImage &data, yarp::os::Stamp *timeStamp=nullptr)
void onRead(yarp::sig::FlexImage &datum) override
std::tuple< bool, yarp::sig::FlexImage, yarp::os::Stamp > getImage() const
~RgbImageBufferedPort() override=default
RgbImageBufferedPort()=default
A mini-server for performing network communication in the background.
BufferedPort()
Constructor.
An abstraction for a time stamp and/or sequence number.
A callback for typed data from a port.
Image class with user control of representation details.