change to one example of each stream source type

This commit is contained in:
Sam Armstrong 2018-09-27 17:27:20 +10:00
parent 30b5942c20
commit bb59884bf1
2 changed files with 6 additions and 39 deletions

View File

@ -1,34 +1,10 @@
# Set up your streams to rtsp here. # Set up your streams to rtsp here.
# streams: # Cannot rename - must leave this as is.
# "type": ["cam" , "topic"]
#
# "source":
# if type=cam, location of v4l2 camera
# if type=topic, the ROS Image topic to subscribe to.
#
# Notes:
# Use a lower framerate of 10/1 on ROS topics.
# There may be issues with appsrc 'media not prepared' errors if the framerate is too high.
streams: stream-x:
type: cam
# stream-x: source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
# type: cam
# source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
# mountpoint: /front
# bitrate: 500
# stream1:
# type: cam
# source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
# mountpoint: /back
# bitrate: 500
stream-a:
type: topic
source: /usb_cam0/image_raw
mountpoint: /front mountpoint: /front
caps: video/x-raw,framerate=10/1,width=640,height=480
bitrate: 500 bitrate: 500
stream-yay: stream-yay:

View File

@ -1,14 +1,5 @@
<launch> <launch>
<!-- Start the image publisher/s if required --> <!-- Start the image publisher/s if required -->
<!-- <node name="usb_cam0" 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="yuyv" />
<param name="io_method" value="mmap"/>
<param name="autofocus" value="true"/>
</node>
<node name="usb_cam1" pkg="usb_cam" type="usb_cam_node" output="screen" > <node name="usb_cam1" pkg="usb_cam" type="usb_cam_node" output="screen" >
<param name="video_device" value="/dev/video1" /> <param name="video_device" value="/dev/video1" />
<param name="image_width" value="640" /> <param name="image_width" value="640" />
@ -17,10 +8,10 @@
<param name="camera_frame_id" value="yuyv" /> <param name="camera_frame_id" value="yuyv" />
<param name="io_method" value="mmap"/> <param name="io_method" value="mmap"/>
<param name="autofocus" value="true"/> <param name="autofocus" value="true"/>
</node> --> </node>
<!-- <node pkg="ros_rtsp" name="camera_publisher" type="camera_publisher" args="0"/> --> <!-- Start the RTSP server -->
<node pkg="nodelet" type="nodelet" name="standalone_nodelet" args="manager" output="screen"/> <node pkg="nodelet" type="nodelet" name="standalone_nodelet" args="manager" output="screen"/>
<node pkg="nodelet" type="nodelet" name="Image2RTSPNodelet" args="load image2rtsp/Image2RTSPNodelet standalone_nodelet" output="screen"> <node pkg="nodelet" type="nodelet" name="Image2RTSPNodelet" args="load image2rtsp/Image2RTSPNodelet standalone_nodelet" output="screen">