mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 18:21:15 +00:00
Added rover catkin packages
This commit is contained in:
39
rover/gscam/examples/minoru.launch
Normal file
39
rover/gscam/examples/minoru.launch
Normal file
@@ -0,0 +1,39 @@
|
||||
<launch>
|
||||
<!-- This launchfile should bring up a node that broadcasts a ros image
|
||||
transport on /webcam/image_raw -->
|
||||
|
||||
<arg name="LEFT_DEV" default="/dev/video0"/>
|
||||
<arg name="RIGHT_DEV" default="/dev/video1"/>
|
||||
<!-- The GStreamer framerate needs to be an integral fraction -->
|
||||
<!-- Note: Minoru can't push full 640x480 at 30fps -->
|
||||
<arg name="WIDTH" default="320"/>
|
||||
<arg name="HEIGHT" default="240"/>
|
||||
<arg name="FPS" default="30/1"/>
|
||||
<arg name="BRIGHTNESS" default="0"/>
|
||||
<arg name="PUBLISH_FRAME" default="false"/>
|
||||
|
||||
<!-- Construct the v4l2src format config -->
|
||||
<arg name="FORMAT" default="video/x-raw-rgb,width=$(arg WIDTH),height=$(arg HEIGHT),framerate=$(arg FPS)"/>
|
||||
|
||||
<group ns="minoru">
|
||||
<node ns="left" 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 LEFT_DEV) brightness=$(arg BRIGHTNESS) ! $(arg FORMAT) ! ffmpegcolorspace"/>
|
||||
<param name="frame_id" value="/minoru_left"/>
|
||||
<param name="sync_sink" value="true"/>
|
||||
</node>
|
||||
<node ns="right" 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 RIGHT_DEV) brightness=$(arg BRIGHTNESS) ! $(arg FORMAT) ! ffmpegcolorspace"/>
|
||||
<param name="frame_id" value="/minoru_right"/>
|
||||
<param name="sync_sink" value="true"/>
|
||||
</node>
|
||||
</group>
|
||||
|
||||
<node if="$(arg PUBLISH_FRAME)" name="left_transform" pkg="tf" type="static_transform_publisher" args="1 2 3 0 -3.141 0 /world /minoru_left 10"/>
|
||||
<node if="$(arg PUBLISH_FRAME)" name="right_transform" pkg="tf" type="static_transform_publisher" args="1 2 3 0 -3.141 0 /world /minoru_right 10"/>
|
||||
</launch>
|
||||
Reference in New Issue
Block a user