Skip to content

Instantly share code, notes, and snippets.

@jbohren
Created October 7, 2015 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbohren/4be3e7cf96fa25c36188 to your computer and use it in GitHub Desktop.
Save jbohren/4be3e7cf96fa25c36188 to your computer and use it in GitHub Desktop.
<launch>
<!-- This launchfile should bring up a node that broadcasts a ros image
transport on /videofile/image_raw -->
<arg name="FILENAME"/>
<arg name="LOOP" default="true"/>
<arg name="PUBLISH_FRAME" default="false"/>
<node ns="videofile" 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="filesrc location=$(arg FILENAME) ! qtdemux ! ffdec_h264 ! ffmpegcolorspace "/>
<param name="frame_id" value="/videofile_frame"/>
<param name="sync_sink" value="true"/>
<param name="reopen_on_eof" value="$(arg LOOP)"/>
</node>
<node if="$(arg PUBLISH_FRAME)" name="videofile_transform" pkg="tf" type="static_transform_publisher" args="1 2 3 0 -3.141 0 /world /videofile_frame 10"/>
</launch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment