我用的相机是森云8M相机,分辨率为3840*2160,在运行ros_demo时报错,看到说明/dev/video0是支持1080p,是否是这个原因导致的报错,如何支持高分辨相机呢
[ INFO] [1652754956.039431936]: dev_name = /dev/video0 camWidth = 3840 camHeight = 2160 fps = 25
attestationVerify [15] succeed.
SHM file does not exist, will create one.
Producer mode.
libv4l2_nvvidconv (0)802) (INFO) : Allocating (10) OUTPUT PLANE BUFFERS Layout=0
libv4l2_nvvidconv (0)818) (INFO) : Allocating (10) CAPTURE PLANE BUFFERS Layout=0
INFO: cam_devname: /dev/video0
Set camera frame rate to 25 fps
ERROR: [line:81] camera_initialize() Failed to set camera output format: Invalid argument (22)
*** init_components**** /dev/video0********
ERROR: [line:118] init_components() Failed to initialize camera device
INFO: Succeed in preparing stream buffers
ERROR: [line:321] start_stream() Failed to start streaming: Invalid argument (22)
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to open camera, please double check your parameters.
[miivii_gmsl_ros-2] process has died [pid 19831, exit code -6, cmd /work/share/usr/jiash/miivii_test/miivii_gmsl_camera-1.0.1/devel_isolated/miivii_gmsl_ros/lib/miivii_gmsl_ros/miivii_gmsl_ros_node __name:=miivii_gmsl_ros __log:=/home/nvidia/.ros/log/12d6cfc6-d58a-11ec-8971-00044bcbedf4/miivii_gmsl_ros-2.log].
log file: /home/nvidia/.ros/log/12d6cfc6-d58a-11ec-8971-00044bcbedf4/miivii_gmsl_ros-2*.log
|
|
|
|
|
共 1 个关于本帖的回复 最后回复于 2022-5-17 16:22