Open HaroldMurcia opened 4 years ago
I work with the DFM 27UR0135-ML camera:
v4l2-ctl --all
Driver Info (not using libv4l2): Driver name : uvcvideo Card type : DFM 27UR0135-ML Bus info : usb-0000:00:14.0-2 Driver version: 5.0.21 Capabilities : 0x84A00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04200001 Video Capture Streaming Extended Pix Format Priority: 2 Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 1280/960 Pixel Format : 'GRBG' Field : None Bytes per Line : 1280 Size Image : 1228800 Colorspace : Default Transfer Function : Default (maps to Rec. 709) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 1280, Height 960 Default : Left 0, Top 0, Width 1280, Height 960 Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 1280, Height 960 Selection: crop_bounds, Left 0, Top 0, Width 1280, Height 960 Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 60.000 (60/1) Read buffers : 0 brightness 0x00980900 (int) : min=0 max=4095 step=1 default=16 value=16 gain 0x00980913 (int) : min=48 max=2047 step=1 default=48 value=2047 exposure_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=333 value=10 exposure_time_us 0x0199e201 (int) : min=100 max=1000000 step=1 default=33333 value=1000 gain_db_100 0x0199e204 (int) : min=0 max=1629 step=1 default=0 value=0 trigger_mode 0x0199e208 (bool) : default=0 value=0 trigger_delay 0x0199e210 (int) : min=0 max=10000000 step=10 default=0 value=150 strobe_enable 0x0199e211 (bool) : default=0 value=0 strobe_polarity 0x0199e212 (bool) : default=0 value=0 strobe_exposure 0x0199e213 (bool) : default=0 value=0 gpout 0x0199e216 (bool) : default=0 value=0 gpin 0x0199e217 (bool) : default=0 value=0 roi_offset_x 0x0199e218 (int) : min=0 max=1184 step=2 default=0 value=0 roi_offset_y 0x0199e219 (int) : min=0 max=864 step=2 default=0 value=0 roi_auto_center 0x0199e220 (bool) : default=1 value=1 trigger_polarity 0x0199e234 (bool) : default=0 value=0 override_scanning_mode 0x0199e257 (int) : min=0 max=2 step=1 default=0 value=0 trigger_global_reset_release 0x0199e261 (bool) : default=0 value=0
List of formats:
video/x-bayer grbg - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw GRAY8 - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw GRAY16_LE - 1280x960 - 70/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY16_LE - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1
However when I use the gscam configuration:
sudo chmod 777 /dev/video0 export GSCAM_CONFIG="v4l2src ! device=/dev/video0 ! video/x-raw, format=BGRx,width=1280,height=960,framerate=60/1 ! videoconverter $ rosrun gscam gscam
I have the following response and error:
[ INFO] [1568046942.639736230]: Using gstreamer config from env: "v4l2src ! device=/dev/video0 ! video/x-raw, format=BGRx,width=1280,height=960,framerate=60/1 ! videoconverter ! video/x-raw,format=RGB ,width=1280,height=960,framerate=60/1 ! shmsink socket-path=/tmp/ros_mem" [ INFO] [1568046942.643547063]: using default calibration URL [ INFO] [1568046942.643609848]: camera calibration URL: file:///home/si2c/.ros/camera_info/camera.yaml [ INFO] [1568046942.643677431]: Unable to open camera calibration file [/home/si2c/.ros/camera_info/camera.yaml] [ WARN] [1568046942.643712920]: Camera calibration file /home/si2c/.ros/camera_info/camera.yaml not found. [ INFO] [1568046942.643743469]: Loaded camera calibration from [FATAL] [1568046942.658753473]: GStreamer: cannot link launchpipe -> sink [FATAL] [1568046942.658835823]: Failed to initialize gscam stream!**
[ INFO] [1568046942.639736230]: Using gstreamer config from env: "v4l2src ! device=/dev/video0 ! video/x-raw, format=BGRx,width=1280,height=960,framerate=60/1 ! videoconverter ! video/x-raw,format=RGB ,width=1280,height=960,framerate=60/1 ! shmsink socket-path=/tmp/ros_mem" [ INFO] [1568046942.643547063]: using default calibration URL [ INFO] [1568046942.643609848]: camera calibration URL: file:///home/si2c/.ros/camera_info/camera.yaml [ INFO] [1568046942.643677431]: Unable to open camera calibration file [/home/si2c/.ros/camera_info/camera.yaml] [ WARN] [1568046942.643712920]: Camera calibration file /home/si2c/.ros/camera_info/camera.yaml not found. [ INFO] [1568046942.643743469]: Loaded camera calibration from [FATAL] [1568046942.658753473]: GStreamer: cannot link launchpipe -> sink [FATAL] [1568046942.658835823]: Failed to initialize gscam stream!
I work with the DFM 27UR0135-ML camera:
v4l2-ctl --all
List of formats:
video/x-bayer grbg - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-bayer grbg - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw GRAY8 - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-raw GRAY8 - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw GRAY16_LE - 1280x960 - 70/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw GRAY16_LE - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1280x960 - 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1280x720 - 80/1 60/1 50/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 1024x768 - 80/1 70/1 60/1 40/1 30/1 20/1 10/1 video/x-raw { RGBx xRGB BGRx xBGR RGBA ARGB BGRA ABGR } - 640x480 - 120/1 90/1 60/1 30/1 15/1 10/1
However when I use the gscam configuration:
I have the following response and error:
[ INFO] [1568046942.639736230]: Using gstreamer config from env: "v4l2src ! device=/dev/video0 ! video/x-raw, format=BGRx,width=1280,height=960,framerate=60/1 ! videoconverter ! video/x-raw,format=RGB ,width=1280,height=960,framerate=60/1 ! shmsink socket-path=/tmp/ros_mem" [ INFO] [1568046942.643547063]: using default calibration URL [ INFO] [1568046942.643609848]: camera calibration URL: file:///home/si2c/.ros/camera_info/camera.yaml [ INFO] [1568046942.643677431]: Unable to open camera calibration file [/home/si2c/.ros/camera_info/camera.yaml] [ WARN] [1568046942.643712920]: Camera calibration file /home/si2c/.ros/camera_info/camera.yaml not found. [ INFO] [1568046942.643743469]: Loaded camera calibration from [FATAL] [1568046942.658753473]: GStreamer: cannot link launchpipe -> sink [FATAL] [1568046942.658835823]: Failed to initialize gscam stream!
**