<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=24&amp;t=7959" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2012-05-14T10:31:32+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=24&amp;t=7959</id>
<entry>
<author><name><![CDATA[cohenguy1]]></name></author>
<updated>2012-05-14T10:31:32+01:00</updated>
<published>2012-05-14T10:31:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7959&amp;p=34367#p34367</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7959&amp;p=34367#p34367"/>
<title type="html"><![CDATA[DARwIn-OP camera probelm]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7959&amp;p=34367#p34367"><![CDATA[
Sometimes when operating our project, we get the following error:<br />VIDIOC_S_FMT error 5,  Input/Output error<br /><br />We find out that the FMT error is caused by another error, &quot;select timeout&quot;.<br />This happens in the Robotis' demo also. When the robot is falling (mainly, but not only), we get the select timeout and the program exits.<br />When trying to restart the program, we get the FMT error, so in order to operate the program again, reboot is needed.<br />We noticed that before we get the FMT error, it says &quot;CM730 is used by another program&quot;, although the processes related to it <br />are closed.<br /><br />It might be related to the USB of the fitPC... some race maybe between the camera and the CM730...<br /><br />We haven't change anything in Robotis' source code.<br />The select time out call that causes the error is:<br />r = select (camera_fd + 1, &amp;fds, NULL, NULL, &amp;tv);<br /><br />The FMT error that follows in the next run of the program is:<br />VIDIOC_S_FMT error 5, Input/output error<br />caused by EIO = errno 5, Input/Output error<br />of the ioctl (camera_fd, VIDIOC_S_FMT, &amp;fmt))<br />When masking this ioctl we get the same Input/Output Error from the following ioctl:<br />ioctl(camera_fd, VIDIOC_G_PARM, &amp;fps)<br /><br />When trying to open the camera in other programs, like cheese or guvcview we still get the Input/Output error.<br /><br />formatting didn't help. same old select timeout. The problem is not to a specific robot. It happened for more than one robot.<br /><br />========================<br />It seems like we've solved the 'select timeout' error. We've adjusted the camera's frame rate to our processing time,<br />and set the frame rate to 14 FPS, which lowered the cpu utilization of our process, and we haven't seen the 'select timeout' since.<br />The FMT error still appears sometimes. <br /><br />Grabbing the frame using OpenCV worked and didn't get any select timeout or the FMT errors, but it is much slower. We didn't try working with ROS.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2938">cohenguy1</a> — Mon May 14, 2012 10:31 am</p><hr />
]]></content>
</entry>
</feed>