鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    请问为什么动手学ROS2的2.3启用笔记本自带摄像头时,调用不了,求助

    已定时 已固定 已锁定 已移动
    ROS 2相关问题
    笔记本自带摄像头 ros2 动手学ros2
    2
    2
    272
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 12708814721
      夏日缤纷熊
      最后由 编辑

      一开始输入命令什么反应都没有,一输入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]: Aborted

      code_text

      13177879061 1 条回复 最后回复 回复 引用 0
      • 13177879061
        温言 @1270881472
        最后由 编辑

        @1270881472 我也遇到了此问题,而且运行OPENCV和Cheese都能正常调用摄像头。请问你解决此问题了吗。

        1 条回复 最后回复 回复 引用 0
        • 第一个帖子
          最后一个帖子
        皖ICP备16016415号-7
        Powered by NodeBB | 鱼香ROS