ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

How about using another kind of expression:

<launch>
  <arg name="cam_name" value="my_camera" /> 
  <arg name="FPS" default="0"/>

  <!-- Start the GSCAM node -->
  <env name="GSCAM_CONFIG" 
      value="souphttpsrc location=http://10.16.63.224/control/faststream.jpg?stream=full ! framerate=$(arg FPS) ! timeout=5 ! jpegdec ! ffmpegcolorspace" />
  <node pkg="gscam" type="gscam" name="$(arg cam_name)">
    <param name="camera_name" value="$(arg cam_name)" />
    <remap from="camera/image_raw" to="$(arg cam_name)/image_raw" />
  </node>

</launch>

I am not sure if this works. But I see similar expression in my v4l.launch:

<launch>
  <arg name="DEVICE" default="/dev/video0"/>
  <arg name="FPS" default="30/1"/>

  <node ns="v4l" name="gscam_driver_v4l" pkg="gscam" type="gscam" output="screen">
    <param name="camera_name" value="default"/>
    <param name="camera_info_url" value="package://gscam/examples/uncalibrated_parameters.ini"/>
    <param name="gscam_config" value="v4l2src device=$(arg DEVICE) ! video/x-raw-rgb,framerate=$(arg FPS) ! ffmpegcolorspace"/>
  </node>

</launch>