请问为什么动手学ROS2的2.3启用笔记本自带摄像头时,调用不了,求助
-
一开始输入命令什么反应都没有,一输入ctrl+c就会出现如下错误,在虚拟机可移动设备那里已经确认连接了摄像头。
zzy@zzy-virtual-machine:~$ ros2 run image_tools cam2image
^C[INFO] [1704265248.929596606] [rclcpp]: signal_handler(signum=2)(cam2image:60562): GStreamer-CRITICAL **: 15:00:48.929:
Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (1053) open OpenCV | GStreamer warning: unable to start pipeline
(cam2image:60562): GStreamer-CRITICAL **: 15:00:48.929:
Trying to dispose element videoconvert0, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
(cam2image:60562): GStreamer-CRITICAL **: 15:00:48.929:
Trying to dispose element appsink0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.[ WARN:0] global ./modules/videoio/src/cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR] [1704265249.158615484] [cam2image]: Could not open video stream
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not open video stream
[ros2run]: Abortedcode_text
-
@1270881472 我也遇到了此问题,而且运行OPENCV和Cheese都能正常调用摄像头。请问你解决此问题了吗。