Skip to content

Instantly share code, notes, and snippets.

@drofp
Created November 11, 2018 23:59
Show Gist options
  • Save drofp/1e7a6e3c4112ee5cf4de8f9812565151 to your computer and use it in GitHub Desktop.
Save drofp/1e7a6e3c4112ee5cf4de8f9812565151 to your computer and use it in GitHub Desktop.
To get usb_cam to work with darknet_ros
<launch>
<node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
<param name="video_device" value="/dev/video1" />
<param name="image_width" value="640" />
<param name="image_height" value="480" />
<param name="pixel_format" value="yuyv" />
<param name="camera_frame_id" value="camera/rgb" />
<param name="io_method" value="mmap"/>
<remap from="/usb_cam/image_raw" to="/camera/rgb/image_raw"/>
</node>
<!--node name="image_view" pkg="image_view" type="image_view" respawn="true" output="screen">
<remap from="image" to="/usb_camera/image_raw"/>
<param name="autosize" value="true" />
</node-->
</launch>
@drofp
Copy link
Author

drofp commented Nov 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment