Camera issues: Difference between revisions

From ISRWiki
Jump to navigation Jump to search
(Created page with "The code for the dragonfly2 camera device needed to be changed because of the following error: <code> <pre style="white-space:normal;"> vizzy@vizzyPC:~$ icubmoddev --device...")
 
(clean up obsolete Vizzy information)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
The code for the dragonfly2 camera device needed to be changed because of the following error:
<code>
<pre style="white-space:normal;">&nbsp;vizzy@vizzyPC:~$ icubmoddev --device grabber --subdevice dragonfly2 --width 320 --height 240 --video_type 1 --white_balance 0.474 0.648 --gain 0.312 --shutter 0.592 --name /cam/left --brightness 0 --DR2 --stamp --d 0 --sharpness 0.5 --hue 0.48 --gamma 0.4 --saturation 0.826 --framerate 30 --verbose</pre>
Format = 1
ERROR: -3
LINE: 234
DragonflyDeviceDriver2: can't open camera
yarpdev: ***ERROR*** driver <dragonfly2> was found but could not open
yarpdev: ***ERROR*** driver <grabber> was found but could not open
===============================================================
== Options checked by device:
==
device=grabber
==
===============================================================
yarpdev: ***ERROR*** device not available.
Suggestions:
+ Do "yarpdev --list" to see list of supported devices.
</code>


At the line 234 of the file:
/vizzy/home/iCub/main/src/libraries/icubmod/dragonfly2/linux/FirewireCameraDC1394-DR2_2.cpp
The <code>dc1394_iso_release_bandwidth(m_pCamera, BANDWIDTH_MAX);</code> function was called, which returned a -3  error.
After looking for the the function documentation (that can be found [http://libdc1394-22.sourcearchive.com/documentation/2.1.2/iso_8h_9652f00457198f360754eb7087ac3132.html here]), it was understood that the function is no longer supported (as can be seen [http://libdc1394-22.sourcearchive.com/documentation/2.1.2/log_8h_197fe17c786e1f915d99cb19b270e541.html#197fe17c786e1f915d99cb19b270e541 here]).
To fix the error the code lines 233 and 234 were commented:
//error=dc1394_iso_release_bandwidth(m_pCamera, BANDWIDTH_MAX);
//if (manage(error)) { fprintf(stderr,"LINE: %d\n",__LINE__); return false; }
[[Vizzy|<< Back to Vizzy wiki homepage]]
[[Category:Robots]]
[[Category:Vislab]]

Latest revision as of 14:04, 22 July 2016