iCub-main
Loading...
Searching...
No Matches
DragonflyDeviceDriver2.cpp
Go to the documentation of this file.
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3/*
4 * Copyright (C) 2007 RobotCub Consortium
5 * Author: Alessandro Scalzo alessandro.scalzo@iit.it
6 * CopyPolicy: Released under the terms of the GNU GPL v2.0.
7 *
8 */
9
11
12#include <yarp/os/Stamp.h>
13#include <yarp/dev/DeviceDriver.h>
14#include <yarp/os/Log.h>
15#include <yarp/os/LogStream.h>
16
17using namespace yarp::os;
18using namespace yarp::dev;
19
20#include "FirewireCameraDC1394-DR2_2.h"
21
23inline CFWCamera_DR2_2* RES(void *res) { return (CFWCamera_DR2_2*)res; }
25
26ReturnValue DragonflyDeviceDriver2Rgb::getImage(yarp::sig::ImageOf<yarp::sig::PixelRgb>& image)
27{
28 return RES(system_resources)->CaptureImage(image) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
29}
30
31ReturnValue DragonflyDeviceDriver2Rgb::getImage(yarp::sig::ImageOf<yarp::sig::PixelMono>& image)
32{
33 return RES(system_resources)->CaptureImage(image) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
34}
35
37{
38 return RES(system_resources)->width();
39}
40
42{
43 return RES(system_resources)->height();
44}
45
46ReturnValue DragonflyDeviceDriver2Raw::getImage(yarp::sig::ImageOf<yarp::sig::PixelMono>& image)
47{
48 return RES(system_resources)->CaptureImage(image) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
49}
50
52{
53 return RES(system_resources)->width();
54}
55
57{
58 return RES(system_resources)->height();
59}
60
62
63DragonflyDeviceDriver2::DragonflyDeviceDriver2(bool raw) :
65{
66}
67
76
77bool DragonflyDeviceDriver2::open(yarp::os::Searchable& config)
78{
79 if(config.check("pixelType"))
80 {
81 if(config.find(("pixelType")).asVocab32()==VOCAB_PIXEL_MONO)
82 raw=true;
83 else if((config.find(("pixelType")).asVocab32()==VOCAB_PIXEL_RGB))
84 raw=false;
85 else
86 {
87 yError()<<"DragonflyDeviceDriver2: invalid pixelType:"<<yarp::os::Vocab32::decode(config.find(("pixelType")).asVocab32());
88 return false;
89 }
90 }
91
93 if (!RES(system_resources)->Create(config))
94 {
95 fprintf(stderr,"DragonflyDeviceDriver2: can't open camera\n");
96 return false;
97 }
98
99 return true;
100}
101
103{
105 {
106 RES(system_resources)->Close();
107 return true;
108 }
109
110 return false;
111}
112
114{
115 return RES(system_resources)->getLastInputStamp();
116}
117
118// SET
119
121{
122 return RES(system_resources)->setBrightness(value);
123}
125{
126 return RES(system_resources)->setExposure(value);
127}
129{
130 return RES(system_resources)->setSharpness(value);
131}
132bool DragonflyDeviceDriver2::setWhiteBalance(double blue, double red)
133{
134 return RES(system_resources)->setWhiteBalance(blue,red);
135}
137{
138 return RES(system_resources)->setHue(value);
139}
141{
142 return RES(system_resources)->setSaturation(value);
143}
145{
146 return RES(system_resources)->setGamma(value);
147}
149{
150 return RES(system_resources)->setShutter(value);
151}
153{
154 return RES(system_resources)->setGain(value);
155}
157{
158 return RES(system_resources)->setIris(value);
159}
160
161// GET
162
164{
165 return RES(system_resources)->getBrightness();
166}
168{
169 return RES(system_resources)->getExposure();
170}
172{
173 return RES(system_resources)->getSharpness();
174}
175bool DragonflyDeviceDriver2::getWhiteBalance(double &blue, double &red)
176{
177 return RES(system_resources)->getWhiteBalance(blue,red);
178}
180{
181 return RES(system_resources)->getHue();
182}
184{
185 return RES(system_resources)->getSaturation();
186}
188{
189 return RES(system_resources)->getGamma();
190}
192{
193 return RES(system_resources)->getShutter();
194}
196{
197 return RES(system_resources)->getGain();
198}
200{
201 return RES(system_resources)->getIris();
202}
203
205// DC1394
207
210{
211 return RES(system_resources)->hasFeatureDC1394(feature);
212}
213bool DragonflyDeviceDriver2::setFeatureDC1394(int feature,double value)
214{
215 return RES(system_resources)->setFeatureDC1394(feature,value);
216}
218{
219 return RES(system_resources)->getFeatureDC1394(feature);
220}
222{
223 return RES(system_resources)->hasOnOffDC1394(feature);
224}
225bool DragonflyDeviceDriver2::setActiveDC1394(int feature, bool onoff)
226{
227 return RES(system_resources)->setActiveDC1394(feature,onoff);
228}
230{
231 return RES(system_resources)->getActiveDC1394(feature);
232}
234{
235 return RES(system_resources)->hasAutoDC1394(feature);
236}
238{
239 return RES(system_resources)->hasManualDC1394(feature);
240}
242{
243 return RES(system_resources)->hasOnePushDC1394(feature);
244}
245bool DragonflyDeviceDriver2::setModeDC1394(int feature, bool auto_onoff)
246{
247 return RES(system_resources)->setModeDC1394(feature,auto_onoff);
248}
250{
251 return RES(system_resources)->getModeDC1394(feature);
252}
254{
255 return RES(system_resources)->setOnePushDC1394(feature);
256}
257yarp::dev::ReturnValue DragonflyDeviceDriver2::getVideoModeMaskDC1394(unsigned int& val)
258{
259 return RES(system_resources)->getVideoModeMaskDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
260}
262{
263 return RES(system_resources)->setVideoModeDC1394(video_mode) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
264}
265ReturnValue DragonflyDeviceDriver2::getVideoModeDC1394(unsigned int& val)
266{
267 return RES(system_resources)->getVideoModeDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
268}
269ReturnValue DragonflyDeviceDriver2::getFPSMaskDC1394(unsigned int& val)
270{
271 return RES(system_resources)->getFPSMaskDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
272}
273ReturnValue DragonflyDeviceDriver2::getFPSDC1394(unsigned int& val)
274{
275 return RES(system_resources)->getFPSDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
276}
278{
279 return RES(system_resources)->setFPSDC1394(fps) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
280}
281ReturnValue DragonflyDeviceDriver2::getISOSpeedDC1394(unsigned int& val)
282{
283 return RES(system_resources)->getISOSpeedDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
284}
285yarp::dev::ReturnValue DragonflyDeviceDriver2::setISOSpeedDC1394(int speed)
286{
287 return RES(system_resources)->setISOSpeedDC1394(speed) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
288}
289ReturnValue DragonflyDeviceDriver2::getColorCodingMaskDC1394(unsigned int video_mode, unsigned int& val)
290{
291 return RES(system_resources)->getColorCodingMaskDC1394(video_mode, val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
292}
294{
295 return RES(system_resources)->getColorCodingDC1394(val) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
296}
298{
299 return RES(system_resources)->setColorCodingDC1394(coding) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
300}
302{
303 return RES(system_resources)->setWhiteBalanceDC1394(b,r);
304}
306{
307 return RES(system_resources)->getWhiteBalanceDC1394(b, r);
308}
309ReturnValue DragonflyDeviceDriver2::getFormat7MaxWindowDC1394(unsigned int &xdim,unsigned int &ydim,unsigned int &xstep,unsigned int &ystep,unsigned int &xoffstep,unsigned int &yoffstep)
310{
311 return RES(system_resources)->getFormat7MaxWindowDC1394(xdim, ydim, xstep, ystep, xoffstep, yoffstep) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
312}
313ReturnValue DragonflyDeviceDriver2::setFormat7WindowDC1394(unsigned int xdim,unsigned int ydim,int x0,int y0)
314{
315 return RES(system_resources)->setFormat7WindowDC1394(xdim,ydim,x0,y0) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
316}
317ReturnValue DragonflyDeviceDriver2::getFormat7WindowDC1394(unsigned int &xdim,unsigned int &ydim,int &x0,int &y0)
318{
319 return RES(system_resources)->getFormat7WindowDC1394(xdim,ydim,x0,y0) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
320}
322{
323 return RES(system_resources)->setOperationModeDC1394(b1394b) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
324}
326{
327 return RES(system_resources)->getOperationModeDC1394(b1394) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
328}
330{
331 return RES(system_resources)->setTransmissionDC1394(bTxON) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
332}
334{
335 return RES(system_resources)->getTransmissionDC1394(bTxON) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
336}
337/*
338bool DragonflyDeviceDriver2::setBayerDC1394(bool bON)
339{
340 return RES(system_resources)->setBayerDC1394(bON);
341}
342bool DragonflyDeviceDriver2::getBayerDC1394()
343{
344 return RES(system_resources)->getBayerDC1394();
345}
346*/
348{
349 return RES(system_resources)->setBroadcastDC1394(onoff) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
350}
352{
353 return RES(system_resources)->setDefaultsDC1394() ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
354}
356{
357 return RES(system_resources)->setResetDC1394() ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
358}
360{
361 return RES(system_resources)->setPowerDC1394(onoff) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
362}
364{
365 return RES(system_resources)->setCaptureDC1394(bON) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
366}
368{
369 return RES(system_resources)->setBytesPerPacketDC1394(bpp) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
370}
372{
373 return RES(system_resources)->getBytesPerPacketDC1394(bpp) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
374}
375
376//IVisualParams
377
379 return RES(system_resources)->getRgbHeight();
380}
381
383 return RES(system_resources)->getRgbWidth();
384}
385
386ReturnValue DragonflyDeviceDriver2::getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfig> &configurations)
387{
388 return RES(system_resources)->getRgbSupportedConfigurations(configurations) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
389}
390
391ReturnValue DragonflyDeviceDriver2::getRgbResolution(int &width, int &height)
392{
393 return RES(system_resources)->getRgbResolution(width,height) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
394}
395
396ReturnValue DragonflyDeviceDriver2::setRgbResolution(int width, int height){
397 if(width<=0 || height<=0){
398 yError()<<"DragonflyDeviceDriver: invalid width or height";
399 return ReturnValue::return_code::return_value_error_generic;
400 }
401 return RES(system_resources)->setRgbResolution(width,height) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
402}
403
404ReturnValue DragonflyDeviceDriver2::getRgbFOV(double &horizontalFov, double &verticalFov){
405 return RES(system_resources)->getRgbFOV(horizontalFov, verticalFov) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
406}
407
408ReturnValue DragonflyDeviceDriver2::setRgbFOV(double horizontalFov, double verticalFov){
409 return RES(system_resources)->setRgbFOV(horizontalFov, verticalFov) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
410}
411
412ReturnValue DragonflyDeviceDriver2::getRgbIntrinsicParam(yarp::os::Property &intrinsic){
413 return RES(system_resources)->getRgbIntrinsicParam(intrinsic) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
414}
415
417 return RES(system_resources)->getRgbMirroring(mirror) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
418}
419
421 return RES(system_resources)->setRgbMirroring(mirror) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
422}
423
425// IFrameGrabberControl2 //
427
428ReturnValue DragonflyDeviceDriver2::getCameraDescription(CameraDescriptor& camera)
429{
430 camera.busType = BusType::BUS_FIREWIRE;
431 camera.deviceDescription = "DragonFly2";
432 return ReturnValue_ok;
433}
434
435ReturnValue DragonflyDeviceDriver2::getActive(cameraFeature_id_t feature, bool& isActive)
436{
437 isActive = RES(system_resources)->getActiveDC1394(static_cast<int>(feature));
438 return ReturnValue_ok;
439}
440
441ReturnValue DragonflyDeviceDriver2::getFeature(cameraFeature_id_t feature, double& value)
442{
443 value = RES(system_resources)->getFeatureDC1394(static_cast<int>(feature));
444 return ReturnValue_ok;
445}
446
447ReturnValue DragonflyDeviceDriver2::getMode(cameraFeature_id_t feature, FeatureMode& mode)
448{
449 mode = TRANSL_MODE( RES(system_resources)->getModeDC1394(static_cast<int>(feature)) );
450 return ReturnValue_ok;
451}
452
453ReturnValue DragonflyDeviceDriver2::hasAuto(cameraFeature_id_t feature, bool& hasAuto)
454{
455 hasAuto = RES(system_resources)->hasAutoDC1394(static_cast<int>(feature));
456 return ReturnValue_ok;
457}
458
459ReturnValue DragonflyDeviceDriver2::hasFeature(cameraFeature_id_t feature, bool& hasFeature)
460{
461 hasFeature = RES(system_resources)->hasFeatureDC1394(static_cast<int>(feature));
462 return ReturnValue_ok;
463}
464
465ReturnValue DragonflyDeviceDriver2::hasManual(cameraFeature_id_t feature, bool& hasManual)
466{
467 hasManual = RES(system_resources)->hasManualDC1394(static_cast<int>(feature));
468 return ReturnValue_ok;
469}
470
471ReturnValue DragonflyDeviceDriver2::hasOnePush(cameraFeature_id_t feature, bool& hasOnePush)
472{
473 hasOnePush = RES(system_resources)->hasOnePushDC1394(static_cast<int>(feature));
474 return ReturnValue_ok;
475}
476
477ReturnValue DragonflyDeviceDriver2::hasOnOff(cameraFeature_id_t feature, bool& HasOnOff)
478{
479 HasOnOff = RES(system_resources)->hasOnOffDC1394(static_cast<int>(feature));
480 return ReturnValue_ok;
481}
482
483ReturnValue DragonflyDeviceDriver2::setActive(cameraFeature_id_t feature, bool onoff)
484{
485 return RES(system_resources)->setActiveDC1394(static_cast<int>(feature), onoff) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
486}
487
488ReturnValue DragonflyDeviceDriver2::setFeature(cameraFeature_id_t feature, double value)
489{
490 return RES(system_resources)->setFeatureDC1394(static_cast<int>(feature), value) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
491}
492
493ReturnValue DragonflyDeviceDriver2::getFeature(cameraFeature_id_t feature, double& value1, double& value2)
494{
495 if(feature == cameraFeature_id_t::YARP_FEATURE_WHITE_BALANCE)
496
497 return RES(system_resources)->getWhiteBalanceDC1394(value1, value2) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
498
499 else
500
501 return ReturnValue::return_code::return_value_error_generic;
502}
503
504ReturnValue DragonflyDeviceDriver2::setFeature(cameraFeature_id_t feature, double value1, double value2)
505{
506 if(feature == cameraFeature_id_t::YARP_FEATURE_WHITE_BALANCE)
507
508 return RES(system_resources)->setWhiteBalanceDC1394(value1, value2) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
509
510 else
511 return ReturnValue::return_code::return_value_error_generic;
512}
513
514ReturnValue DragonflyDeviceDriver2::setMode(cameraFeature_id_t feature, FeatureMode mode)
515{
516 return RES(system_resources)->setModeDC1394(static_cast<int>(feature), TRANSL_MODE(mode)) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
517}
518
519ReturnValue DragonflyDeviceDriver2::setOnePush(cameraFeature_id_t feature)
520{
521 return RES(system_resources)->setOnePushDC1394(static_cast<int>(feature)) ? ReturnValue_ok : ReturnValue::return_code::return_value_error_generic;
522}
CanBusResources & RES(void *res)
CFWCamera_DR2_2 * RES(void *res)
yarp::dev::ReturnValue getImage(yarp::sig::ImageOf< yarp::sig::PixelMono > &image)
FrameGrabber image interface, returns the last acquired frame as an rgb image.
virtual int width() const
Return the width of each frame.
virtual int height() const
Return the height of each frame.
yarp::dev::ReturnValue getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)
FrameGrabber image interface, returns the last acquired frame as an rgb image.
virtual int height() const
Return the height of each frame.
virtual int width() const
Return the width of each frame.
virtual yarp::dev::ReturnValue setCaptureDC1394(bool bON)
Switch image capture ON/OFF.
virtual bool setActiveDC1394(int feature, bool onoff)
Switch feature on/off.
virtual bool getActiveDC1394(int feature)
Is feature ON or OFF?
virtual yarp::dev::ReturnValue setFeature(cameraFeature_id_t feature, double value)
virtual bool setWhiteBalance(double blue, double red)
Set White Balance.
virtual yarp::dev::ReturnValue hasOnOff(yarp::dev::cameraFeature_id_t feature, bool &HasOnOff)
virtual yarp::dev::ReturnValue setVideoModeDC1394(int video_mode)
Set camera acquisition mode.
virtual bool close(void)
Closes the device driver.
virtual yarp::dev::ReturnValue getVideoModeDC1394(unsigned int &val)
Get camera acquisition mode.
virtual yarp::dev::ReturnValue getFormat7MaxWindowDC1394(unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep)
Get maximum image dimensions in Format 7 mode.
virtual bool hasManualDC1394(int feature)
Has feature Manual mode?
virtual yarp::dev::ReturnValue setBytesPerPacketDC1394(unsigned int bpp)
Set Firewire communication packet size.
virtual yarp::dev::ReturnValue getBytesPerPacketDC1394(unsigned int &bpp)
Get Firewire communication packet size.
virtual double getBrightness()
Get Brightness.
virtual double getExposure()
Get Exposure.
virtual double getSharpness()
Get Sharpness.
virtual yarp::dev::ReturnValue setDefaultsDC1394()
Set camera features to default.
virtual yarp::dev::ReturnValue setTransmissionDC1394(bool bTxON)
Set image transmission ON/OFF.
virtual double getFeatureDC1394(int feature)
Get feature value.
virtual bool setOnePushDC1394(int feature)
Trigger feature One Push adjust.
virtual bool getModeDC1394(int feature)
Is feature mode Auto or Manual?
virtual bool hasAutoDC1394(int feature)
Has feature Auto mode?
virtual bool setIris(double v)
Set Iris.
virtual bool hasFeatureDC1394(int feature)
Is feature present?
virtual yarp::dev::ReturnValue getRgbFOV(double &horizontalFov, double &verticalFov)
Get the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue setFPSDC1394(int fps)
Set camera framerate.
virtual yarp::dev::ReturnValue setBroadcastDC1394(bool onoff)
Set feature commands propagation ON/OFF.
virtual bool setModeDC1394(int feature, bool auto_onoff)
Switch feature Auto/Manual.
virtual int getRgbWidth()
Return the width of each frame.
virtual yarp::dev::ReturnValue getMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode &mode)
virtual yarp::dev::ReturnValue getOperationModeDC1394(bool &b1394)
Get Operation Mode.
virtual yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov)
Set the field of view (FOV) of the rgb camera.
virtual double getSaturation()
Get Saturation.
virtual bool setWhiteBalanceDC1394(double b, double r)
Set White Balance.
virtual yarp::dev::ReturnValue setRgbMirroring(bool mirror)
Set the mirroring setting of the sensor.
virtual yarp::os::Stamp getLastInputStamp()
Implements the IPreciselyTimed interface.
virtual yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::os::Property &intrinsic)
Get the intrinsic parameters of the rgb camera.
virtual yarp::dev::ReturnValue getColorCodingDC1394(unsigned int &val)
Get image color coding.
virtual bool getWhiteBalanceDC1394(double &b, double &r)
Get White Balance.
virtual yarp::dev::ReturnValue getCameraDescription(CameraDescriptor &camera)
virtual yarp::dev::ReturnValue setRgbResolution(int width, int height)
Set the resolution of the rgb image from the camera.
virtual bool setGain(double v)
Set Gain.
virtual yarp::dev::ReturnValue getColorCodingMaskDC1394(unsigned int video_mode, unsigned int &val)
Get supported color coding mask.
virtual yarp::dev::ReturnValue setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)
Set image dimensions in Format 7 mode.
virtual yarp::dev::ReturnValue hasManual(yarp::dev::cameraFeature_id_t, bool &hasManual)
virtual bool hasOnOffDC1394(int feature)
Can be feature turned on/off?
virtual bool setGamma(double v)
Set Gamma.
virtual yarp::dev::ReturnValue hasOnePush(yarp::dev::cameraFeature_id_t feature, bool &hasOnePush)
virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfig > &configurations)
Get the possible configurations of the camera.
virtual bool setShutter(double v)
Set Shutter.
virtual yarp::dev::ReturnValue getFeature(yarp::dev::cameraFeature_id_t feature, double &value)
virtual yarp::dev::ReturnValue setColorCodingDC1394(int coding)
Set image color coding.
virtual yarp::dev::ReturnValue hasAuto(yarp::dev::cameraFeature_id_t feature, bool &hasAuto)
virtual yarp::dev::ReturnValue setPowerDC1394(bool onoff)
Switch camera power ON/OFF.
virtual bool hasOnePushDC1394(int feature)
Has feature Manual mode?
virtual bool setHue(double v)
Set Hue.
virtual yarp::dev::ReturnValue setMode(yarp::dev::cameraFeature_id_t feature, yarp::dev::FeatureMode mode)
virtual yarp::dev::ReturnValue getISOSpeedDC1394(unsigned int &val)
Get camera Firewire ISO speed.
virtual bool setExposure(double v)
Set Exposure.
virtual yarp::dev::ReturnValue getFormat7WindowDC1394(unsigned int &xdim, unsigned int &ydim, int &x0, int &y0)
Get image dimensions in Format 7 mode.
virtual bool setSharpness(double v)
Set Sharpness.
virtual bool setSaturation(double v)
Set Saturation.
virtual int getRgbHeight()
Return the height of each frame.
virtual yarp::dev::ReturnValue setActive(cameraFeature_id_t feature, bool onoff)
virtual yarp::dev::ReturnValue getRgbResolution(int &width, int &height)
Get the resolution of the rgb image from the camera.
virtual bool getWhiteBalance(double &blue, double &red)
Get White Balance.
virtual bool open(yarp::os::Searchable &config)
Open the device driver.
virtual yarp::dev::ReturnValue getFPSMaskDC1394(unsigned int &val)
Get supported framerates mask.
virtual yarp::dev::ReturnValue getFPSDC1394(unsigned int &val)
Get camera framerate.
virtual yarp::dev::ReturnValue setOnePush(yarp::dev::cameraFeature_id_t feature)
virtual yarp::dev::ReturnValue setISOSpeedDC1394(int speed)
Set camera Firewire ISO speed.
virtual yarp::dev::ReturnValue getVideoModeMaskDC1394(unsigned int &val)
Get supported video mode mask.
virtual double getShutter()
Get Shutter.
virtual bool setBrightness(double v)
Set Brightness.
virtual bool setFeatureDC1394(int feature, double value)
Set feature value.
virtual yarp::dev::ReturnValue setResetDC1394()
virtual yarp::dev::ReturnValue getRgbMirroring(bool &mirror)
Get the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue hasFeature(yarp::dev::cameraFeature_id_t, bool &hasFeature)
virtual yarp::dev::ReturnValue setOperationModeDC1394(bool b1394b)
Set Operation Mode.
virtual yarp::dev::ReturnValue getTransmissionDC1394(bool &bTxON)
Is image transmission ON or OFF?
virtual yarp::dev::ReturnValue getActive(yarp::dev::cameraFeature_id_t feature, bool &isActive)
fprintf(fid,'\n')