Erin_fyw 2021-08-30 23:50 采纳率: 100%
浏览 1383
已结题

虚拟机用ros usb_cam 打开笔记本摄像头是绿屏

环境:主机macbook,虚拟机软件VirtualBox,虚拟机Ubuntu20,ros版本——noetic
在终端输入roslaunch usb_cam usb_cam-test.launch,摄像头能点亮,但跳出来的窗口是花屏

img

但用openCV能正常打开摄像头,不知道是不是ros usb_cam对虚拟机兼容性不好,请问道友们有没有解决方法或相关链接

终端具体信息如下:

~/catkin_ws/src/usb_cam/build$ roslaunch usb_cam usb_cam-test.launch
... logging to /home/erin/.ros/log/5c227e5a-0993-11ec-9a9f-89ce01692739/roslaunch-erin-VirtualBox-10335.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://erin-VirtualBox:41103/

SUMMARY
========

PARAMETERS
 * /image_view/autosize: True
 * /rosdistro: noetic
 * /rosversion: 1.15.11
 * /usb_cam/camera_frame_id: usb_cam
 * /usb_cam/image_height: 480
 * /usb_cam/image_width: 640
 * /usb_cam/io_method: mmap
 * /usb_cam/pixel_format: yuyv
 * /usb_cam/video_device: /dev/video0

NODES
  /
    image_view (image_view/image_view)
    usb_cam (usb_cam/usb_cam_node)

ROS_MASTER_URI=http://localhost:11311

process[usb_cam-1]: started with pid [10349]
process[image_view-2]: started with pid [10350]
[ INFO] [1630337617.736986359]: Initializing nodelet with 1 worker threads.
[ INFO] [1630337617.914545813]: Using transport "raw"
[ INFO] [1630337618.000285673]: using default calibration URL
[ INFO] [1630337618.008409458]: camera calibration URL: file:///home/erin/.ros/camera_info/head_camera.yaml
[ INFO] [1630337618.008519466]: Unable to open camera calibration file [/home/erin/.ros/camera_info/head_camera.yaml]
[ WARN] [1630337618.008573806]: Camera calibration file /home/erin/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1630337618.008627093]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ WARN] [1630337618.153641151]: unknown control 'white_balance_temperature_auto'

[ WARN] [1630337618.160093523]: unknown control 'focus_auto'

launch文件如下:

img

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 9月8日
  • 已采纳回答 8月31日
  • 创建了问题 8月30日

悬赏问题

  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?
  • ¥50 cocos2d-x lua 在mac上接入lua protobuf?