gscam
gscam copied to clipboard
gscam won't run unless we run gst-launch first
I'm trying to use gscam to run a DMM 22BUC03-ML Imaging Source camera, and I am seeing some weird interactions.
When I run the node normally, I get the following output:
rosrun gscam gscam _gscam_config:="v4l2src device:=/dev/video0 ! video/x-raw-gray ! ffmpegcolorspace"
[ INFO] [1467152862.797360889]: Using gstreamer config from rosparam: "v4l2src device:=/dev/video0 ! video/x-raw-gray ! ffmpegcolorspace"
[ INFO] [1467152862.803022560]: using default calibration URL
[ INFO] [1467152862.803093946]: camera calibration URL: file:///home/casey/.ros/camera_info/camera.yaml
[ INFO] [1467152862.803181343]: Unable to open camera calibration file [/home/casey/.ros/camera_info/camera.yaml]
[ WARN] [1467152862.803220507]: Camera calibration file /home/casey/.ros/camera_info/camera.yaml not found.
[ INFO] [1467152862.803248666]: Loaded camera calibration from
[ INFO] [1467152862.835670663]: Time offset: 1464805568.523
[ INFO] [1467152865.598964739]: Publishing stream...
[ INFO] [1467152865.599199723]: Started stream.
** (gscam:7006): WARNING **: ffmpegcsp0: size 29277 is not a multiple of unit size 357120
At this point, I get no messages from the node and Ctrl-C does not close the node.
However, if I run the camera using gst-launch first:
gst-launch-0.10 v4l2src ! video/x-raw-gray ! tisvideobufferfilter ! tis_auto_exposure ! ffmpegcolorspace ! ximagesink
and then run the gscam node, it works fine. We don't get the WARNING message, the camera runs normally, and Ctrl-C closes the node.
We need to be able to run the node with only ROS, without starting other programs first. What could be causing this interaction, and what could we do to fix it?
I am currently having a similar issue. Did you find a solution @nonrevlb ?