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 return ReturnValue::return_code::return_value_error_not_ready;
135 }
136 return iRgbVisualParams->getRgbIntrinsicParam(intrinsic);
137}
138
140{
141 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
142 mirror = false;
143 return ReturnValue::return_code::return_value_error_not_ready;
144 }
145 return iRgbVisualParams->getRgbMirroring(mirror);
146
147}
148
150{
151 if (!iRgbVisualParams || !m_forwardRgbVisualParams) {
152 return ReturnValue::return_code::return_value_error_not_ready;
153 }
154 return iRgbVisualParams->setRgbMirroring(mirror);
155}
156
158{
159 if (!iFrameGrabberControls) {
160 return ReturnValue::return_code::return_value_error_not_ready;
161 }
162 return iFrameGrabberControls->getCameraDescription(camera);
163}
164
166{
167 if (!iFrameGrabberControls) {
168 return ReturnValue::return_code::return_value_error_not_ready;
169 }
170 return iFrameGrabberControls->hasFeature(feature, hasFeature);
171}
172
174{ if (!iFrameGrabberControls) {
175 return ReturnValue::return_code::return_value_error_not_ready;
176 }
177 return iFrameGrabberControls->setFeature(feature, value);
178}
179
181{
182 if (!iFrameGrabberControls) {
183 return ReturnValue::return_code::return_value_error_not_ready;
184 }
185 return iFrameGrabberControls->getFeature(feature, value);
186}
187
189{
190 if (!iFrameGrabberControls) {
191 return ReturnValue::return_code::return_value_error_not_ready;
192 }
193 return iFrameGrabberControls->setFeature(feature, value1, value2);
194}
195
197{
198 if (!iFrameGrabberControls) {
199 return ReturnValue::return_code::return_value_error_not_ready;
200 }
201 return iFrameGrabberControls->getFeature(feature, value1, value2);
202}
203
205{
206 if (!iFrameGrabberControls) {
207 return ReturnValue::return_code::return_value_error_not_ready;
208 }
209 return iFrameGrabberControls->hasOnOff(feature, HasOnOff);
210}
211
213{
214 if (!iFrameGrabberControls) {
215 return ReturnValue::return_code::return_value_error_not_ready;
216 }
217 return iFrameGrabberControls->setActive(feature, onoff);
218}
219
221{
222 if (!iFrameGrabberControls) {
223 return ReturnValue::return_code::return_value_error_not_ready;
224 }
225 return iFrameGrabberControls->getActive(feature, isActive);
226}
227
229{
230 if (!iFrameGrabberControls) {
231 return ReturnValue::return_code::return_value_error_not_ready;
232 }
233 return iFrameGrabberControls->hasAuto(feature, hasAuto);
234}
235
237{
238 if (!iFrameGrabberControls) {
239 return ReturnValue::return_code::return_value_error_not_ready;
240 }
241 return iFrameGrabberControls->hasManual(feature, hasManual);
242}
243
245{
246 if (!iFrameGrabberControls) {
247 return ReturnValue::return_code::return_value_error_not_ready;
248 }
249 return iFrameGrabberControls->hasOnePush(feature, hasOnePush);
250}
251
253{
254 if (!iFrameGrabberControls) {
255 return ReturnValue::return_code::return_value_error_not_ready;
256 }
257 return iFrameGrabberControls->setMode(feature, mode);
258}
259
261{
262 if (!iFrameGrabberControls) {
263 return ReturnValue::return_code::return_value_error_not_ready;
264 }
265 return iFrameGrabberControls->getMode(feature, mode);
266}
267
269{
270 if (!iFrameGrabberControls) {
271 return ReturnValue::return_code::return_value_error_not_ready;
272 }
273 return iFrameGrabberControls->setOnePush(feature);
274}
275
277{
278 if (!iFrameGrabberControlsDC1394) {
279 val = 0;
280 return ReturnValue::return_code::return_value_error_not_ready;
281 }
282 return iFrameGrabberControlsDC1394->getVideoModeMaskDC1394(val);
283}
284
286{
287 if (!iFrameGrabberControlsDC1394) {
288 val = 0;
289 return ReturnValue::return_code::return_value_error_not_ready;
290 }
291 return iFrameGrabberControlsDC1394->getVideoModeMaskDC1394(val);
292}
293
295{
296 if (!iFrameGrabberControlsDC1394) {
297 return ReturnValue::return_code::return_value_error_not_ready;
298 }
299 return iFrameGrabberControlsDC1394->setVideoModeDC1394(video_mode);
300}
301
303{
304 if (!iFrameGrabberControlsDC1394) {
305 val = 0;
306 return ReturnValue::return_code::return_value_error_not_ready;
307 }
308 return iFrameGrabberControlsDC1394->getFPSMaskDC1394(val);
309}
310
312{
313 if (!iFrameGrabberControlsDC1394) {
314 val = 0;
315 return ReturnValue::return_code::return_value_error_not_ready;
316 }
317 return iFrameGrabberControlsDC1394->getFPSDC1394(val);
318}
319
321
322{
323 if (!iFrameGrabberControlsDC1394) {
324 return ReturnValue::return_code::return_value_error_not_ready;
325 }
326 return iFrameGrabberControlsDC1394->setFPSDC1394(fps);
327}
328
330{
331 if (!iFrameGrabberControlsDC1394) {
332 val = 0;
333 return ReturnValue::return_code::return_value_error_not_ready;
334 }
335 return iFrameGrabberControlsDC1394->getISOSpeedDC1394(val);
336}
337
339{
340 if (!iFrameGrabberControlsDC1394) {
341 return ReturnValue::return_code::return_value_error_not_ready;
342 }
343 return iFrameGrabberControlsDC1394->setISOSpeedDC1394(speed);
344}
345
347{
348 if (!iFrameGrabberControlsDC1394) {
349 val = 0;
350 return ReturnValue::return_code::return_value_error_not_ready;
351 }
352 return iFrameGrabberControlsDC1394->getColorCodingMaskDC1394(video_mode,val);
353}
354
356{
357 if (!iFrameGrabberControlsDC1394) {
358 val = 0;
359 return ReturnValue::return_code::return_value_error_not_ready;
360 }
361 return iFrameGrabberControlsDC1394->getColorCodingDC1394(val);
362}
363
365{
366 if (!iFrameGrabberControlsDC1394) {
367 return ReturnValue::return_code::return_value_error_not_ready;
368 }
369 return iFrameGrabberControlsDC1394->setColorCodingDC1394(coding);
370}
371
373 unsigned int& ydim,
374 unsigned int& xstep,
375 unsigned int& ystep,
376 unsigned int& xoffstep,
377 unsigned int& yoffstep)
378{
379 if (!iFrameGrabberControlsDC1394) {
380 return ReturnValue::return_code::return_value_error_not_ready;
381 }
382 return iFrameGrabberControlsDC1394->getFormat7MaxWindowDC1394(xdim, ydim, xstep, ystep, xoffstep, yoffstep);
383}
384
385ReturnValue FrameGrabberCropper::getFormat7WindowDC1394(unsigned int& xdim, unsigned int& ydim, int& x0, int& y0)
386{
387 if (!iFrameGrabberControlsDC1394) {
388 return ReturnValue::return_code::return_value_error_not_ready;
389 }
390 return iFrameGrabberControlsDC1394->getFormat7WindowDC1394(xdim, ydim, x0, y0);
391}
392
393ReturnValue FrameGrabberCropper::setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)
394{
395 if (!iFrameGrabberControlsDC1394) {
396 return ReturnValue::return_code::return_value_error_not_ready;
397 }
398 return iFrameGrabberControlsDC1394->setFormat7WindowDC1394(xdim, ydim, x0, y0);
399}
400
402{
403 if (!iFrameGrabberControlsDC1394) {
404 return ReturnValue::return_code::return_value_error_not_ready;
405 }
406 return iFrameGrabberControlsDC1394->setOperationModeDC1394(b1394b);
407}
408
410{
411 if (!iFrameGrabberControlsDC1394) {
412 return ReturnValue::return_code::return_value_error_not_ready;
413 }
414 return iFrameGrabberControlsDC1394->getOperationModeDC1394(b1394b);
415}
416
418{
419 if (!iFrameGrabberControlsDC1394) {
420 return ReturnValue::return_code::return_value_error_not_ready;
421 }
422 return iFrameGrabberControlsDC1394->setTransmissionDC1394(bTxON);
423}
424
426{
427 if (!iFrameGrabberControlsDC1394) {
428 return ReturnValue::return_code::return_value_error_not_ready;
429 }
430 return iFrameGrabberControlsDC1394->getTransmissionDC1394(bTxON);
431}
432
434{
435 if (!iFrameGrabberControlsDC1394) {
436 return ReturnValue::return_code::return_value_error_not_ready;
437 }
438 return iFrameGrabberControlsDC1394->setBroadcastDC1394(onoff);
439}
440
442{
443 if (!iFrameGrabberControlsDC1394) {
444 return ReturnValue::return_code::return_value_error_not_ready;
445 }
446 return iFrameGrabberControlsDC1394->setDefaultsDC1394();
447}
448
450{
451 if (!iFrameGrabberControlsDC1394) {
452 return ReturnValue::return_code::return_value_error_not_ready;
453 }
454 return iFrameGrabberControlsDC1394->setResetDC1394();
455}
456
458{
459 if (!iFrameGrabberControlsDC1394) {
460 return ReturnValue::return_code::return_value_error_not_ready;
461 }
462 return iFrameGrabberControlsDC1394->setPowerDC1394(onoff);
463}
464
466{
467 if (!iFrameGrabberControlsDC1394) {
468 return ReturnValue::return_code::return_value_error_not_ready;
469 }
470 return iFrameGrabberControlsDC1394->setCaptureDC1394(bON);
471}
472
474{
475 if (!iFrameGrabberControlsDC1394) {
476 return ReturnValue::return_code::return_value_error_not_ready;
477 }
478 return iFrameGrabberControlsDC1394->getBytesPerPacketDC1394(bpp);
479}
480
482{
483 if (!iFrameGrabberControlsDC1394) {
484 return ReturnValue::return_code::return_value_error_not_ready;
485 }
486 return iFrameGrabberControlsDC1394->setBytesPerPacketDC1394(bpp);
487}
488
489ReturnValue FrameGrabberCropper::getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfig>& cfgs)
490{
491 if (!iFrameGrabberControls) {
492 return ReturnValue::return_code::return_value_error_not_ready;
493 }
494 return iRgbVisualParams->getRgbSupportedConfigurations(cfgs);
495}
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 getRgbIntrinsicParam(yarp::sig::IntrinsicParams &intrinsic) override
Get the intrinsic parameters of the rgb camera.
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 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 getRgbFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::sig::IntrinsicParams &intrinsic)=0
Get the intrinsic parameters of the rgb camera.
virtual yarp::dev::ReturnValue getRgbMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfigData > &configurations)=0
Get the possible configurations of the camera.
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 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.
The IntrinsicParams struct to handle the intrinsic parameter of cameras(RGB and RGBD either).