RDK X5板卡在使用双目mipi摄像头SC230AI时
使用命令:source /opt/tros/humble/setup.bash
ros2 launch mipi_cam mipi_cam_dual_channel_websocket.launch.py
root@ubuntu:~# source /opt/tros/humble/setup.bash
root@ubuntu:~# ros2 launch mipi_cam mipi_cam_dual_channel_websocket.launch.py
[INFO] [launch]: All log files can be found below /root/.ros/log/2026-03-16-11-28-50-521348-ubuntu-8138
[INFO] [launch]: Default logging verbosity is set to INFO
camera_type is None
Hobot shm pkg enables zero-copy with fastrtps profiles file: /opt/tros/humble/lib/hobot_shm/config/shm_fastdds.xml
Hobot shm pkg sets RMW_FASTRTPS_USE_QOS_FROM_XML: 1
config_file_path is /opt/tros/humble/lib/mipi_cam/config/
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
webserver has launch
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
config_file_path is /opt/tros/humble/lib/mipi_cam/config/
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
env of RMW_FASTRTPS_USE_QOS_FROM_XML is 1 , ignore env setting
webserver has launch
[INFO] [mipi_cam-1]: process started with pid [8141]
[INFO] [hobot_codec_republish-2]: process started with pid [8143]
[INFO] [websocket-3]: process started with pid [8145]
[hobot_codec_republish-2] [WARN] [1773631731.064348346] [hobot_codec_encoder]: Parameters:
[hobot_codec_republish-2] sub_topic: /image_combine_raw
[hobot_codec_republish-2] pub_topic: /image_combine_jpeg
[hobot_codec_republish-2] channel: 1
[hobot_codec_republish-2] in_mode: ros
[hobot_codec_republish-2] out_mode: ros
[hobot_codec_republish-2] in_format: nv12
[hobot_codec_republish-2] out_format: jpeg
[hobot_codec_republish-2] jpg_quality: 85.00
[hobot_codec_republish-2] input_framerate: 30
[hobot_codec_republish-2] output_framerate: -1
[hobot_codec_republish-2] dump_output: false
[hobot_codec_republish-2] dump_file_prefix: ./dump_codec_output
[hobot_codec_republish-2] dump_frame_count: -1 (unlimited)
[hobot_codec_republish-2] [WARN] [1773631731.070256184] [HobotCodecImpl]: platform x5
[websocket-3] [WARN] [1773631731.443012582] [websocket]:
[websocket-3] Parameter:
[websocket-3] image_topic: /image_combine_jpeg
[websocket-3] image_type: mjpeg
[websocket-3] only_show_image: 1
[websocket-3] output_fps: 0
[mipi_cam-1] [ERROR] [1773631733.304512646] [mipi_cam]: [init]->cap capture init failture.
[mipi_cam-1]
[mipi_cam-1] [ERROR] [1773631733.305279576] [mipi_node]: [init]->mipinode init failure.
[mipi_cam-1]
[mipi_cam-1] [WARN] [1773631733.307175314] [mipi_node]: get camera calibration parameters failed
[mipi_cam-1] terminate called after throwing an instance of ‘rclcpp::exceptions::RCLError’
[mipi_cam-1] what(): could not create publisher: rcl node’s context is invalid, at ./src/rcl/node.c:428
[ERROR] [mipi_cam-1]: process has died [pid 8141, exit code -6, cmd ‘/opt/tros/humble/lib/mipi_cam/mipi_cam --ros-args --log-level warn --ros-args --params-file /tmp/launch_params_xuq6lozj --params-file /tmp/launch_params_p0wjpkgs --params-file /tmp/launch_params_53b1pvg5 --params-file /tmp/launch_params__ktjp4a1 --params-file /tmp/launch_params_7uypu2o3 --params-file /tmp/launch_params_733s1q08 --params-file /tmp/launch_params_35kcnenv --params-file /tmp/launch_params_2ur9b93s --params-file /tmp/launch_params_zyfzasmp --params-file /tmp/launch_params_l8cv88ua --params-file /tmp/launch_params_omk0w5x3 --params-file /tmp/launch_params_y30k8p41 --params-file /tmp/launch_params_7euljhmm --params-file /tmp/launch_params_5q3wbtdf --params-file /tmp/launch_params_867bbur5 --params-file /tmp/launch_params_uh5hri9s --params-file /tmp/launch_params_eoy1ceuc --params-file /tmp/launch_params_m4fyipb0 --params-file /tmp/launch_params_qsglomxd’].
[hobot_codec_republish-2] [ERROR] [1773631736.071288294] [hobot_codec_encoder]: Hobot_Codec has not received image for more than 5 seconds! Please check whether the image publisher still exists by ‘ros2 topic info /image_combine_raw’!
[websocket-3] [ERROR] [1773631736.463879416] [websocket]: Websocket did not receive image data! Please check whether the image publisher still exists by ‘ros2 topic info /image_combine_jpeg’!
^Z
[1]+ 已停止 ros2 launch mipi_cam mipi_cam_dual_channel_websocket.launch.py
root@ubuntu:~# ls /dev/video*
ls: 无法访问 ‘/dev/video*’: 没有那个文件或目录
出现以上情况,无法打开双目摄像头,并且有时通过此命令能打开,过了1个小时左右,用相同命令又无法打开双目摄像头,求解!!!
