ROS下采用camera_calibration进行双目相机标定

使用ROS官方提供的 camera_calibration 包对双目相机进行标定

更多细节可移步至官网

一、准备工作:

  1. 系统环境:Ubuntu16.04
  2. ROS版本:ros-kinetic
  3. 双目相机:Intel RealSense D435i
  4. 标定板:7×6

二、双目标定:

  1. 启动双目相机驱动:
source devel/setup.bash
roslaunch realsense2_camera rs_camera.launch
  1. 查看图像是否发布:
rostopic list  #列出 topic 确保相机正在通过ROS发布图像

这会显示所有已发布的topic,检查是否有双目相机左右图像的topic。以下是本实验的相机topic:

buu@buu-OptiPlex-7060:~$ rostopic list
/camera/accel/imu_info
/camera/accel/sample
/camera/color/camera_info
/camera/color/image_raw
/camera/depth/camera_info
/camera/depth/image_rect_raw
/camera/extrinsics/depth_to_color
/camera/extrinsics/depth_to_infra1
/camera/extrinsics/depth_to_infra2
/camera/gyro/imu_info
/camera/gyro/sample
/camera/infra1/camera_info
/camera/infra1/image_rect_raw
/camera/infra2/camera_info
/camera/infra2/image_rect_raw
/camera/motion_module/parameter_descriptions
/camera/motion_module/parameter_updates
/camera/realsense2_camera_manager/bond
/camera/rgb_camera/auto_exposure_roi/parameter_descriptions
/camera/rgb_camera/auto_exposure_roi/parameter_updates
/camera/rgb_camera/parameter_descriptions
/camera/rgb_camera/parameter_updates
/camera/stereo_module/auto_exposure_roi/parameter_descriptions
/camera/stereo_module/auto_exposure_roi/parameter_updates
/camera/stereo_module/parameter_descriptions
/camera/stereo_module/parameter_updates
/clicked_point
/diagnostics
/health_aggregator/error_text
/health_aggregator/fatal_text
/health_aggregator/ok_text
/health_aggregator/warn_text
/initialpose
/linear_velocity_viz
/move_base_simple/goal
/ndt_monitor/ndt_info_text
/points_raw
/rosout
/rosout_agg
/tf
/tf_static
  1. 安装编译image_pipeline包:
cd catkin_ws/src  
git clone https://github.com/ros-perception/image_pipeline/tree/kinetic  # 注意:要下载kinetic版本的包
cd ..  
rosdep install --from-paths src --ignore-src   # 安装image_pipeline 所需的依赖
catkin_make
  1. 启动标定程序:
source devel/setup.bash
rosrun camera_calibration cameracalibrator.py --approximate 0.1 --size 7x6 --square 0.025 left:=/camera/infra1/image_rect_raw right:=/camera/infra2/image_rect_raw right_camera:=/camera/right left_camera:=/camera/left --no-service-check
  1. 标定完成后,点击”SAVE"保存标定结果,默认保存在/tmp/calibrationdata.tar.gz路径下。
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
  • 5
    点赞
  • 41
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值