Robotics StackExchange | Archived questions

change parameters in launch file

i have this launch file for usb camera

<launch>
  <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>

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

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 "VIDIOCSFMT error 22,Invalid Argument" and i am trying to solve this error,please help me

Asked by rak on 2016-05-27 02:17:19 UTC

Comments

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.

Asked by gvdhoorn on 2016-05-27 05:36:55 UTC

Answers