From 09a21ab281e0f7901a15c70c8137ffbde2a3d996 Mon Sep 17 00:00:00 2001 From: Furushchev <furushchev@jsk.imi.i.u-tokyo.ac.jp> Date: Tue, 15 Sep 2015 15:39:36 +0900 Subject: [PATCH] [libuvc_camera] add detail error message if no image format support --- libuvc_camera/src/camera_driver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libuvc_camera/src/camera_driver.cpp b/libuvc_camera/src/camera_driver.cpp index f7aa6f6..3690d54 100644 --- a/libuvc_camera/src/camera_driver.cpp +++ b/libuvc_camera/src/camera_driver.cpp @@ -366,6 +366,8 @@ void CameraDriver::OpenCamera(UVCCameraConfig &new_config) { uvc_perror(mode_err, "uvc_get_stream_ctrl_format_size"); uvc_close(devh_); uvc_unref_device(dev_); + ROS_ERROR("check video_mode/width/height/frame_rate are available"); + uvc_print_diag(devh_, NULL); return; } -- GitLab