Skip to content

Commit

Permalink
Merge pull request #17 from rjw57/fix-logitech-webcam
Browse files Browse the repository at this point in the history
usb_cam_test: explicitly configure contrast and saturation
  • Loading branch information
DuongLe committed Nov 18, 2014
2 parents 31e19d1 + ddffecc commit 95c66ca
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/ros/surgery_launch/launch/usb_cam_test.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
<launch>
<node pkg="usb_cam" type="usb_cam_node" name="usb_cam" />
<node pkg="usb_cam" type="usb_cam_node" name="usb_cam">
<!-- The usb_cam node hard-codes contrast and saturation to "32". For our
cameras this is not a good value; the image appears washed out and
indistinct. Explicitly set mid-range values. -->
<param name="contrast" value="128" />
<param name="saturation" value="128" />

<!-- The usb_cam node sets the focus value to something silly. Explicitly
disable auto-focus and set focus to "0" (aka "at infinity"). -->
<param name="autofocus" value="false" />
<param name="focus" value="0" />

</node>
<node pkg="image_view" type="image_view" name="image_view">
<remap from="image" to="usb_cam/image_raw" />
</node>
Expand Down

0 comments on commit 95c66ca

Please sign in to comment.