Dejan,<div><br></div><div>Did you take a look at the uvc_cam driver (<a href="http://www.ros.org/browse/details.php?name=uvc_cam">http://www.ros.org/browse/details.php?name=uvc_cam</a>)? I don't remember if it or the fork my group was doing some work on (<a href="http://github.com/ericperko/uvc_cam" target="_blank">github.com/ericperko/uvc_cam</a>) supports autofocus at the moment, but I do recall that adding features to the dynamic reconfigure settings was pretty easy if it works in guvcview. Since both use the same uvc driver interface, code that works in guvcview should be easily portable to the uvc_cam driver. I've CC'd my collaborator that has been using it regularly for a while and did most of the driver side stuff, so he may be able to give some more info if I'm totally wrong in any of this (It has been a while since I did any serious work on the driver).</div>
<div><br></div><div>I'm pretty sure that, at the very least, if you save your settings with guvcview and then do not change them with a uvc based camera driver on startup, the cameras should maintain the settings from guvcview.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div><br></div><div>Also, I hadn't noticed that there are more options when guvcview is run as root vs. a regular user. We've been having some issues with parameters acting weirdly on some cheap webcams that we have and perhaps running as root may expose some more parameters that might allow us to solve the weirdness. Luckily, better cameras such as the Logitech Webcam Pro 9000 haven't given us any trouble so far.</div>

<div><br></div><div>I can't really say for how easy it would be to add that feature to the other drivers compared to adding it to a uvc based driver. If you do hack on this based on our fork, patches are welcome :)</div>

<div><br></div><div>- Eric</div><div><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 3:55 AM, Dejan Pangercic <span dir="ltr"><<a href="mailto:dejan.pangercic@gmail.com" target="_blank">dejan.pangercic@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear ROS-istas,<br>
<br>
I got a Logitech QC Pro 9000 camera which came with an autofocus<br>
property and which I can set in e.g. guvcview (though only as su<br>
user). It is set to false by default and it would be nice to be able<br>
to enable it within any of the ROS drivers. I did not find this<br>
feature in any of the existing drivers I tried out (gscam,<br>
logitech_web_cam,  logitech_usb_webcam, usb_cam).<br>
Said that, does anyone know which driver would be the simplest to<br>
bring this feature in?<br>
<br>
thx and cheers, D.<br>
--<br>
MSc. Dejan Pangercic<br>
PhD Student/Researcher<br>
Intelligent Autonomous Systems Group<br>
Technische Universität München<br>
Telephone: +49 (89) 289-26908<br>
E-Mail: <a href="mailto:dejan.pangercic@cs.tum.edu" target="_blank">dejan.pangercic@cs.tum.edu</a><br>
WWW: <a href="http://ias.cs.tum.edu/people/pangercic" target="_blank">http://ias.cs.tum.edu/people/pangercic</a><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">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>