<div>Kim,</div><div><br></div>Another possibility would be to add the 'respawn="true"' attribute to the camera1394_node tag in your launch file as long as camera1394 is exiting when the camera doesn't start. See <a href="http://www.ros.org/wiki/roslaunch/XML/node">http://www.ros.org/wiki/roslaunch/XML/node</a> for the docs. <div>
<br></div><div>Making the driver more tolerant of finicky cameras wouldn't be a bad thing though, in my opinion. We'd have to test it, but I can't see trying n open attempts if the first (n-1) fail causing problems with cameras that already open on the first try.<div>
<br></div><div>Does the camera have that same behavior on any computer you try? I've seen some really crappy 1394 hardware that can make 1394 cameras behave badly or just randomly die.<br><div><br></div><div>Another option would be to contact the manufacturer and see if that might be corrected by a firmware update or a warranty repair :)</div>
<div><br></div><div>- Eric</div><div><br><div class="gmail_quote">On Sun, Jul 11, 2010 at 12:32 AM, Kim Houck <span dir="ltr"><<a href="mailto:kim_houck@yahoo.com">kim_houck@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I was wondering if anyone else has seen issues with camera1394 throwing<br>
an exception after failing to start the camera. I have been dealing<br>
with an older firewire camera(dc1394 A) that often fails to start on the<br>
first try(this also occurs using the camera with opencv or the dc1394<br>
interface directly).<br>
<br>
When the camera fails to start properly the camera1394 node needs to be<br>
restarted to get get the camera to work, which isn't a problem for a<br>
stand alone node but gets aggravating when using launch files. I made a<br>
change to openCamera in camera1394.cpp to have it try again to open the<br>
camera if it fails the first time and only give up and throw an<br>
exception if it fails twice. I was wondering if anyone else has<br>
encountered this problem and if so if have they found a better solution<br>
for it?<br>
<br>
I'm not sure if this constitutes a bug/change request for camera1394,<br>
since it may be limited to a very small subset of hardware and I'm not<br>
sure if fixing this would cause problems for other camera hardware.<br>
<br>
Thanks.<br>
<br>
-Kim<br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br></div></div></div>