change parameters in launch file

asked 2016-05-27 02:17:19 -0500

rak gravatar image

updated 2016-05-27 05:35:56 -0500

gvdhoorn gravatar image

i have this launch file for usb camera

  <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="yuyv" />
    <param name="camera_frame_id" value="usb_cam" />
    <param name="io_method" value="mmap"/>

  <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" />

and i want to change the the image height ,width and pixel format but i dont know how i can do the same. Actually i am using a dslr camera instead of a webcam and i am getting "VIDIOC_S_FMT error 22,Invalid Argument" and i am trying to solve this error,please help me

edit retag flag offensive close merge delete


Please format console copy/pastes (ie: error msgs) and any code snippets using the Preformatted Text button (the one with 101010 on it). I've already done it, but please keep it in mind for future questions.

gvdhoorn gravatar image gvdhoorn  ( 2016-05-27 05:36:55 -0500 )edit