环境: vmware虚拟机 ubuntu20.04 + noetic + 笔记本摄像头

在对摄像头进行标定后,生成了相应的标定文件,运行 launch 文件usb_cam_with_calibration.launch 仍然出现如下警告:

[head_camera] does not match name narrow_stereo in file /home/michael/.ros/camera_info/head_camera.yaml.

打开标定文件:

image_width: 640
image_height: 480
camera_name: narrow_stereo
camera_matrix:
  rows: 3
  cols: 3
  data: [653.558145, 0, 315.474744, 0, 612.170158, 246.740547, 0, 0, 1]
distortion_model: plumb_bob
distortion_coefficients:
  rows: 1
  cols: 5
  data: [0.071946, -0.127256, 0.003988999999999999, -0.008007, 0]
rectification_matrix:
  rows: 3
  cols: 3
  data: [1, 0, 0, 0, 1, 0, 0, 0, 1]
projection_matrix:
  rows: 3
  cols: 4
  data: [660.515259, 0, 310.741637, 0, 0, 621.001221, 247.869777, 0, 0, 0, 1, 0]

最后发现是 camera_name的问题,需要将 narrow_stereo 改成 head_camera 即可

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐