forked from ros-drivers/gscam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
videofile.launch
19 lines (16 loc) · 905 Bytes
/
videofile.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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) ! decodebin ! 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>