Created
December 14, 2017 10:15
-
-
Save plusangel/9d022fbab8627e640c50d8d501bda4e1 to your computer and use it in GitHub Desktop.
usb_cam bring_up (roslaunch with imput arguments)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<arg name="foo"/> | |
<node name="usb_cam" pkg="usb_cam" type="usb_cam_node" | |
output="screen" > | |
<param name="video_device" value="/dev/video0" /> | |
<param name="image_width" value="640" /> | |
<param name="image_height" value="480" /> | |
<param name="pixel_format" value="mjpeg" /> | |
<param name="camera_frame_id" value="usb_cam" /> | |
<param name="io_method" value="mmap"/> | |
<param name="camera_info_url" type="string" value="file://$(find my_camera_launcher)/config/hp.yml" /> | |
</node> | |
<!-- Launching image_view node --> | |
<group if="$(arg foo)"> | |
<node name="image_view" pkg="image_view" type="image_view" | |
respawn="false" output="screen"> | |
<remap from="image" to="/usb_cam/image_raw"/> | |
<param name="autosize" value="true" /> | |
</node> | |
</group> | |
</launch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment