YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameGrabberCropper.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7
8#include <yarp/os/Log.h>
9#include <yarp/os/LogStream.h>
10
11using namespace yarp::dev;
12
13namespace {
14YARP_LOG_COMPONENT(FRAMEGRABBERCROPPER, "yarp.device.frameGrabberCropper")
15}
16
21
22
32
33
35{
36 return true;
37}
38
40{
41 if (!poly->isValid()) {
42 yCError(FRAMEGRABBERCROPPER) << "The device is not valid";
43 return false;
44 }
45
48 poly->view(iFrameGrabberControls);
49 poly->view(iFrameGrabberControlsDC1394);
50 poly->view(iRgbVisualParams);
51 poly->view(iPreciselyTimed);
52
54 yCError(FRAMEGRABBERCROPPER) << "The device does not implement the required interfaces";
55 return false;
56 }
57
58 return true;
59}
60
62{
65 iFrameGrabberControls = nullptr;
66 iFrameGrabberControlsDC1394 = nullptr;
67 iRgbVisualParams = nullptr;
68 iPreciselyTimed = nullptr;
69 return true;
70}
71
73{
74 if (device2attach.size() != 1) {
75 yCError(FRAMEGRABBERCROPPER, "Expected only one device to be attached");
76 return false;
77 }
78
79 return attach(device2attach[0]->poly);
80}
81
83{
84 return detach();
85}
86
91
96
98{
99 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
100 return ReturnValue::return_code::return_value_error_not_ready;
101 }
102 return iRgbVisualParams->setRgbResolution(width, height);
103}
104
106{
107 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
108 return ReturnValue::return_code::return_value_error_not_ready;
109 }
110 return iRgbVisualParams->getRgbResolution(width, height);
111}
112
113ReturnValue FrameGrabberCropper::getRgbFOV(double& horizontalFov, double& verticalFov)
114{
115 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
116 horizontalFov = std::numeric_limits<double>::quiet_NaN();
117 verticalFov = std::numeric_limits<double>::quiet_NaN();
118 return ReturnValue::return_code::return_value_error_not_ready;
119 }
120 return iRgbVisualParams->getRgbFOV(horizontalFov, verticalFov);
121}
122
123ReturnValue FrameGrabberCropper::setRgbFOV(double horizontalFov, double verticalFov)
124{
125 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
126 return ReturnValue::return_code::return_value_error_not_ready;
127 }
128 return iRgbVisualParams->setRgbFOV(horizontalFov, verticalFov);
129}
130
132{
133 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
134 intrinsic.clear();
135 return ReturnValue::return_code::return_value_error_not_ready;
136 }
137 return iRgbVisualParams->getRgbIntrinsicParam(intrinsic);
138}
139
141{
142 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
143 mirror = false;
144 return ReturnValue::return_code::return_value_error_not_ready;
145 }
146 return iRgbVisualParams->getRgbMirroring(mirror);
147
148}
149
151{
152 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
153 return ReturnValue::return_code::return_value_error_not_ready;
154 }
155 return iRgbVisualParams->setRgbMirroring(mirror);
156}
157
159{
160 if (!iFrameGrabberControls) {
161 return ReturnValue::return_code::return_value_error_not_ready;
162 }
163 return iFrameGrabberControls->getCameraDescription(camera);
164}
165
167{
168 if (!iFrameGrabberControls) {
169 return ReturnValue::return_code::return_value_error_not_ready;
170 }
171 return iFrameGrabberControls->hasFeature(feature, hasFeature);
172}
173
175{ if (!iFrameGrabberControls) {
176 return ReturnValue::return_code::return_value_error_not_ready;
177 }
178 return iFrameGrabberControls->setFeature(feature, value);
179}
180
182{
183 if (!iFrameGrabberControls) {
184 return ReturnValue::return_code::return_value_error_not_ready;
185 }
186 return iFrameGrabberControls->getFeature(feature, value);
187}
188
190{
191 if (!iFrameGrabberControls) {
192 return ReturnValue::return_code::return_value_error_not_ready;
193 }
194 return iFrameGrabberControls->setFeature(feature, value1, value2);
195}
196
198{
199 if (!iFrameGrabberControls) {
200 return ReturnValue::return_code::return_value_error_not_ready;
201 }
202 return iFrameGrabberControls->getFeature(feature, value1, value2);
203}
204
206{
207 if (!iFrameGrabberControls) {
208 return ReturnValue::return_code::return_value_error_not_ready;
209 }
210 return iFrameGrabberControls->hasOnOff(feature, HasOnOff);
211}
212
214{
215 if (!iFrameGrabberControls) {
216 return ReturnValue::return_code::return_value_error_not_ready;
217 }
218 return iFrameGrabberControls->setActive(feature, onoff);
219}
220
222{
223 if (!iFrameGrabberControls) {
224 return ReturnValue::return_code::return_value_error_not_ready;
225 }
226 return iFrameGrabberControls->getActive(feature, isActive);
227}
228
230{
231 if (!iFrameGrabberControls) {
232 return ReturnValue::return_code::return_value_error_not_ready;
233 }
234 return iFrameGrabberControls->hasAuto(feature, hasAuto);
235}
236
238{
239 if (!iFrameGrabberControls) {
240 return ReturnValue::return_code::return_value_error_not_ready;
241 }
242 return iFrameGrabberControls->hasManual(feature, hasManual);
243}
244
246{
247 if (!iFrameGrabberControls) {
248 return ReturnValue::return_code::return_value_error_not_ready;
249 }
250 return iFrameGrabberControls->hasOnePush(feature, hasOnePush);
251}
252
254{
255 if (!iFrameGrabberControls) {
256 return ReturnValue::return_code::return_value_error_not_ready;
257 }
258 return iFrameGrabberControls->setMode(feature, mode);
259}
260
262{
263 if (!iFrameGrabberControls) {
264 return ReturnValue::return_code::return_value_error_not_ready;
265 }
266 return iFrameGrabberControls->getMode(feature, mode);
267}
268
270{
271 if (!iFrameGrabberControls) {
272 return ReturnValue::return_code::return_value_error_not_ready;
273 }
274 return iFrameGrabberControls->setOnePush(feature);
275}
276
278{
279 if (!iFrameGrabberControlsDC1394) {
280 val = 0;
281 return ReturnValue::return_code::return_value_error_not_ready;
282 }
283 return iFrameGrabberControlsDC1394->getVideoModeMaskDC1394(val);
284}
285
287{
288 if (!iFrameGrabberControlsDC1394) {
289 val = 0;
290 return ReturnValue::return_code::return_value_error_not_ready;
291 }
292 return iFrameGrabberControlsDC1394->getVideoModeMaskDC1394(val);
293}
294
296{
297 if (!iFrameGrabberControlsDC1394) {
298 return ReturnValue::return_code::return_value_error_not_ready;
299 }
300 return iFrameGrabberControlsDC1394->setVideoModeDC1394(video_mode);
301}
302
304{
305 if (!iFrameGrabberControlsDC1394) {
306 val = 0;
307 return ReturnValue::return_code::return_value_error_not_ready;
308 }
309 return iFrameGrabberControlsDC1394->getFPSMaskDC1394(val);
310}
311
313{
314 if (!iFrameGrabberControlsDC1394) {
315 val = 0;
316 return ReturnValue::return_code::return_value_error_not_ready;
317 }
318 return iFrameGrabberControlsDC1394->getFPSDC1394(val);
319}
320
322
323{
324 if (!iFrameGrabberControlsDC1394) {
325 return ReturnValue::return_code::return_value_error_not_ready;
326 }
327 return iFrameGrabberControlsDC1394->setFPSDC1394(fps);
328}
329
331{
332 if (!iFrameGrabberControlsDC1394) {
333 val = 0;
334 return ReturnValue::return_code::return_value_error_not_ready;
335 }
336 return iFrameGrabberControlsDC1394->getISOSpeedDC1394(val);
337}
338
340{
341 if (!iFrameGrabberControlsDC1394) {
342 return ReturnValue::return_code::return_value_error_not_ready;
343 }
344 return iFrameGrabberControlsDC1394->setISOSpeedDC1394(speed);
345}
346
348{
349 if (!iFrameGrabberControlsDC1394) {
350 val = 0;
351 return ReturnValue::return_code::return_value_error_not_ready;
352 }
353 return iFrameGrabberControlsDC1394->getColorCodingMaskDC1394(video_mode,val);
354}
355
357{
358 if (!iFrameGrabberControlsDC1394) {
359 val = 0;
360 return ReturnValue::return_code::return_value_error_not_ready;
361 }
362 return iFrameGrabberControlsDC1394->getColorCodingDC1394(val);
363}
364
366{
367 if (!iFrameGrabberControlsDC1394) {
368 return ReturnValue::return_code::return_value_error_not_ready;
369 }
370 return iFrameGrabberControlsDC1394->setColorCodingDC1394(coding);
371}
372
374 unsigned int& ydim,
375 unsigned int& xstep,
376 unsigned int& ystep,
377 unsigned int& xoffstep,
378 unsigned int& yoffstep)
379{
380 if (!iFrameGrabberControlsDC1394) {
381 return ReturnValue::return_code::return_value_error_not_ready;
382 }
383 return iFrameGrabberControlsDC1394->getFormat7MaxWindowDC1394(xdim, ydim, xstep, ystep, xoffstep, yoffstep);
384}
385
386ReturnValue FrameGrabberCropper::getFormat7WindowDC1394(unsigned int& xdim, unsigned int& ydim, int& x0, int& y0)
387{
388 if (!iFrameGrabberControlsDC1394) {
389 return ReturnValue::return_code::return_value_error_not_ready;
390 }
391 return iFrameGrabberControlsDC1394->getFormat7WindowDC1394(xdim, ydim, x0, y0);
392}
393
394ReturnValue FrameGrabberCropper::setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)
395{
396 if (!iFrameGrabberControlsDC1394) {
397 return ReturnValue::return_code::return_value_error_not_ready;
398 }
399 return iFrameGrabberControlsDC1394->setFormat7WindowDC1394(xdim, ydim, x0, y0);
400}
401
403{
404 if (!iFrameGrabberControlsDC1394) {
405 return ReturnValue::return_code::return_value_error_not_ready;
406 }
407 return iFrameGrabberControlsDC1394->setOperationModeDC1394(b1394b);
408}
409
411{
412 if (!iFrameGrabberControlsDC1394) {
413 return ReturnValue::return_code::return_value_error_not_ready;
414 }
415 return iFrameGrabberControlsDC1394->getOperationModeDC1394(b1394b);
416}
417
419{
420 if (!iFrameGrabberControlsDC1394) {
421 return ReturnValue::return_code::return_value_error_not_ready;
422 }
423 return iFrameGrabberControlsDC1394->setTransmissionDC1394(bTxON);
424}
425
427{
428 if (!iFrameGrabberControlsDC1394) {
429 return ReturnValue::return_code::return_value_error_not_ready;
430 }
431 return iFrameGrabberControlsDC1394->getTransmissionDC1394(bTxON);
432}
433
435{
436 if (!iFrameGrabberControlsDC1394) {
437 return ReturnValue::return_code::return_value_error_not_ready;
438 }
439 return iFrameGrabberControlsDC1394->setBroadcastDC1394(onoff);
440}
441
443{
444 if (!iFrameGrabberControlsDC1394) {
445 return ReturnValue::return_code::return_value_error_not_ready;
446 }
447 return iFrameGrabberControlsDC1394->setDefaultsDC1394();
448}
449
451{
452 if (!iFrameGrabberControlsDC1394) {
453 return ReturnValue::return_code::return_value_error_not_ready;
454 }
455 return iFrameGrabberControlsDC1394->setResetDC1394();
456}
457
459{
460 if (!iFrameGrabberControlsDC1394) {
461 return ReturnValue::return_code::return_value_error_not_ready;
462 }
463 return iFrameGrabberControlsDC1394->setPowerDC1394(onoff);
464}
465
467{
468 if (!iFrameGrabberControlsDC1394) {
469 return ReturnValue::return_code::return_value_error_not_ready;
470 }
471 return iFrameGrabberControlsDC1394->setCaptureDC1394(bON);
472}
473
475{
476 if (!iFrameGrabberControlsDC1394) {
477 return ReturnValue::return_code::return_value_error_not_ready;
478 }
479 return iFrameGrabberControlsDC1394->getBytesPerPacketDC1394(bpp);
480}
481
483{
484 if (!iFrameGrabberControlsDC1394) {
485 return ReturnValue::return_code::return_value_error_not_ready;
486 }
487 return iFrameGrabberControlsDC1394->setBytesPerPacketDC1394(bpp);
488}
489
490ReturnValue FrameGrabberCropper::getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfig>& cfgs)
491{
492 if (!iFrameGrabberControls) {
493 return ReturnValue::return_code::return_value_error_not_ready;
494 }
495 return iRgbVisualParams->getRgbSupportedConfigurations(cfgs);
496}
CameraDescriptor camera
FeatureMode mode
yarp::dev::IFrameGrabberOf< yarp::sig::ImageOf< yarp::sig::PixelRgb > > * iFrameGrabberOf
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
yarp::dev::ReturnValue setActive(yarp::dev::cameraFeature_id_t feature, bool onoff) override
Set the requested feature on or off.
yarp::dev::ReturnValue setColorCodingDC1394(int coding) override
yarp::dev::ReturnValue hasOnOff(yarp::dev::cameraFeature_id_t feature, bool &HasOnOff) override
Check if the camera has the ability to turn on/off the requested feature.
yarp::dev::ReturnValue getBytesPerPacketDC1394(unsigned int &bpp) override
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue setFeature(yarp::dev::cameraFeature_id_t feature, double value) override
Set the requested feature to a value (saturation, brightness ... )
yarp::dev::ReturnValue hasOnePush(yarp::dev::cameraFeature_id_t feature, bool &hasOnePush) override
Check if the requested feature has the 'onePush' mode.
yarp::dev::ReturnValue getTransmissionDC1394(bool &bTxON) override
yarp::dev::ReturnValue setPowerDC1394(bool onoff) override
yarp::dev::ReturnValue getCameraDescription(yarp::dev::CameraDescriptor &camera) override
Get a basic description of the camera hw.
yarp::dev::ReturnValue getColorCodingDC1394(unsigned int &val) override
yarp::dev::ReturnValue setISOSpeedDC1394(int speed) override
yarp::dev::ReturnValue getFormat7WindowDC1394(unsigned int &xdim, unsigned int &ydim, int &x0, int &y0) override
yarp::dev::ReturnValue setDefaultsDC1394() override
yarp::dev::ReturnValue setFPSDC1394(int fps) override
yarp::dev::ReturnValue getRgbFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the rgb camera.
yarp::dev::ReturnValue setMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode mode) override
Set the requested mode for the feature.
yarp::dev::ReturnValue setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0) override
yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the rgb camera.
yarp::dev::ReturnValue setBytesPerPacketDC1394(unsigned int bpp) override
yarp::dev::ReturnValue getOperationModeDC1394(bool &b1394b) override
yarp::dev::ReturnValue setBroadcastDC1394(bool onoff) override
yarp::dev::ReturnValue getISOSpeedDC1394(unsigned int &val) override
yarp::dev::ReturnValue getVideoModeDC1394(unsigned int &val) override
yarp::dev::ReturnValue hasFeature(yarp::dev::cameraFeature_id_t feature, bool &hasFeature) override
Check if camera has the requested feature (saturation, brightness ... )
bool attachAll(const yarp::dev::PolyDriverList &device2attach) override
Attach to a list of objects.
yarp::dev::ReturnValue getVideoModeMaskDC1394(unsigned int &val) override
int getRgbWidth() override
Return the width of each frame.
bool detach() override
Detach the object (you must have first called attach).
yarp::dev::ReturnValue getFormat7MaxWindowDC1394(unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep) override
yarp::dev::ReturnValue getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
yarp::dev::ReturnValue setOnePush(yarp::dev::cameraFeature_id_t feature) override
Set the requested feature to a value (saturation, brightness ... )
yarp::dev::ReturnValue getMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode &mode) override
Get the current mode for the feature.
yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfig > &cfgs) override
Get the possible configurations of the camera.
yarp::dev::ReturnValue getFPSDC1394(unsigned int &val) override
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool detachAll() override
Detach the object (you must have first called attach).
yarp::dev::ReturnValue setCaptureDC1394(bool bON) override
yarp::dev::ReturnValue getColorCodingMaskDC1394(unsigned int video_mode, unsigned int &val) override
yarp::dev::ReturnValue getFPSMaskDC1394(unsigned int &val) override
yarp::dev::ReturnValue setVideoModeDC1394(int video_mode) override
yarp::dev::ReturnValue setOperationModeDC1394(bool b1394b) override
yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::os::Property &intrinsic) override
Get the intrinsic parameters of the rgb camera.
yarp::dev::ReturnValue getActive(yarp::dev::cameraFeature_id_t feature, bool &isActive) override
Get the current status of the feature, on or off.
yarp::dev::ReturnValue setResetDC1394() override
yarp::dev::ReturnValue getFeature(yarp::dev::cameraFeature_id_t feature, double &value) override
Get the current value for the requested feature.
int getRgbHeight() override
Return the height of each frame.
yarp::dev::ReturnValue hasManual(yarp::dev::cameraFeature_id_t feature, bool &hasManual) override
Check if the requested feature has the 'manual' mode.
yarp::dev::ReturnValue setRgbMirroring(bool mirror) override
Set the mirroring setting of the sensor.
yarp::dev::ReturnValue getRgbMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
yarp::dev::ReturnValue hasAuto(yarp::dev::cameraFeature_id_t feature, bool &hasAuto) override
Check if the requested feature has the 'auto' mode.
yarp::dev::ReturnValue setTransmissionDC1394(bool bTxON) override
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
yarp::dev::ReturnValue setRgbResolution(int width, int height) override
Set the resolution of the rgb image from the camera.
bool view(T *&x)
Get an interface to the device driver.
virtual yarp::dev::ReturnValue getFPSMaskDC1394(unsigned int &val)=0
virtual yarp::dev::ReturnValue setBytesPerPacketDC1394(unsigned int bpp)=0
virtual yarp::dev::ReturnValue setColorCodingDC1394(int coding)=0
virtual yarp::dev::ReturnValue getBytesPerPacketDC1394(unsigned int &bpp)=0
virtual yarp::dev::ReturnValue setOperationModeDC1394(bool b1394b)=0
virtual yarp::dev::ReturnValue getFPSDC1394(unsigned int &val)=0
virtual yarp::dev::ReturnValue setTransmissionDC1394(bool bTxON)=0
virtual yarp::dev::ReturnValue setBroadcastDC1394(bool onoff)=0
virtual yarp::dev::ReturnValue getColorCodingDC1394(unsigned int &val)=0
virtual yarp::dev::ReturnValue setISOSpeedDC1394(int speed)=0
virtual yarp::dev::ReturnValue getFormat7MaxWindowDC1394(unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep)=0
virtual yarp::dev::ReturnValue getOperationModeDC1394(bool &b1394)=0
virtual yarp::dev::ReturnValue getISOSpeedDC1394(unsigned int &val)=0
virtual yarp::dev::ReturnValue setFPSDC1394(int fps)=0
virtual yarp::dev::ReturnValue setResetDC1394()=0
virtual yarp::dev::ReturnValue getFormat7WindowDC1394(unsigned int &xdim, unsigned int &ydim, int &x0, int &y0)=0
virtual yarp::dev::ReturnValue setVideoModeDC1394(int video_mode)=0
virtual yarp::dev::ReturnValue setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)=0
virtual yarp::dev::ReturnValue getColorCodingMaskDC1394(unsigned int video_mode, unsigned int &val)=0
virtual yarp::dev::ReturnValue setCaptureDC1394(bool bON)=0
virtual yarp::dev::ReturnValue setPowerDC1394(bool onoff)=0
virtual yarp::dev::ReturnValue getTransmissionDC1394(bool &bTxON)=0
virtual yarp::dev::ReturnValue getVideoModeMaskDC1394(unsigned int &val)=0
virtual yarp::dev::ReturnValue setDefaultsDC1394()=0
virtual yarp::dev::ReturnValue setFeature(cameraFeature_id_t feature, double value)=0
Set the requested feature to a value (saturation, brightness ... )
virtual yarp::dev::ReturnValue hasOnOff(cameraFeature_id_t feature, bool &HasOnOff)=0
Check if the camera has the ability to turn on/off the requested feature.
virtual yarp::dev::ReturnValue getMode(cameraFeature_id_t feature, FeatureMode &mode)=0
Get the current mode for the feature.
virtual yarp::dev::ReturnValue hasManual(cameraFeature_id_t feature, bool &hasManual)=0
Check if the requested feature has the 'manual' mode.
virtual yarp::dev::ReturnValue setOnePush(cameraFeature_id_t feature)=0
Set the requested feature to a value (saturation, brightness ... )
virtual yarp::dev::ReturnValue getCameraDescription(CameraDescriptor &camera)=0
Get a basic description of the camera hw.
virtual yarp::dev::ReturnValue hasOnePush(cameraFeature_id_t feature, bool &hasOnePush)=0
Check if the requested feature has the 'onePush' mode.
virtual yarp::dev::ReturnValue getActive(cameraFeature_id_t feature, bool &isActive)=0
Get the current status of the feature, on or off.
virtual yarp::dev::ReturnValue hasAuto(cameraFeature_id_t feature, bool &hasAuto)=0
Check if the requested feature has the 'auto' mode.
virtual yarp::dev::ReturnValue setActive(cameraFeature_id_t feature, bool onoff)=0
Set the requested feature on or off.
virtual yarp::dev::ReturnValue setMode(cameraFeature_id_t feature, FeatureMode mode)=0
Set the requested mode for the feature.
virtual yarp::dev::ReturnValue hasFeature(cameraFeature_id_t, bool &hasFeature)=0
Check if camera has the requested feature (saturation, brightness ... )
virtual yarp::dev::ReturnValue getFeature(cameraFeature_id_t feature, double &value)=0
Get the current value for the requested feature.
virtual yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue setRgbMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the rgb camera.
virtual yarp::dev::ReturnValue getRgbFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfig > &configurations)=0
Get the possible configurations of the camera.
virtual yarp::dev::ReturnValue getRgbMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue setRgbResolution(int width, int height)=0
Set the resolution of the rgb image from the camera.
virtual yarp::dev::ReturnValue getRgbResolution(int &width, int &height)=0
Get the resolution of the rgb image from the camera.
A container for a device driver.
Definition PolyDriver.h:23
bool isValid() const
Check if device is valid.
A class for storing options and configuration information.
Definition Property.h:33
void clear()
Remove all associations.
A base class for nested structures that can be searched.
Definition Searchable.h:31
Typed image class.
Definition Image.h:603
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.