7#ifndef YARP_FRAMEWRITER_NWS_YARP_H
8#define YARP_FRAMEWRITER_NWS_YARP_H
23 std::vector<yarp::sig::FlexImage> lastData;
32 std::lock_guard<std::mutex>
mylock(m_mutex);
33 lastData.push_back(v);
36 inline void getLast(std::vector<yarp::sig::FlexImage>& img)
38 std::lock_guard<std::mutex>
mylock(m_mutex);
83 bool close()
override;
This class is the parameters parser for class FrameWriter_nws_yarp.
frameGrabber_nws_yarp: A YARP NWS for camera devices.
bool detach() override
Detach the object (you must have first called attach).
FrameWriter_nws_yarp(FrameWriter_nws_yarp &&)=delete
FrameWriter_nws_yarp(const FrameWriter_nws_yarp &)=delete
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
void run() override
Loop function.
FrameWriter_nws_yarp & operator=(FrameWriter_nws_yarp &&)=delete
FrameWriter_nws_yarp & operator=(const FrameWriter_nws_yarp &)=delete
~FrameWriter_nws_yarp() override
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
bool threadInit() override
Initialization method.
Interface implemented by all device drivers.
Read a YARP-format image to a device.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
BufferedPort()
Constructor.
An abstraction for a periodic thread.
A port that is specialized as an RPC server.
A base class for nested structures that can be searched.
Image class with user control of representation details.