ZED2相机标定

31 篇文章 0 订阅
18 篇文章 0 订阅

1.

//打开命令行
roscore

2.

在文件夹下找到common.yaml 文件在这里插入图片描述修改resolution为1
在这里插入图片描述

//另开一个命令行
roslaunch zed_wrapper zed.launch

3.降低摄像头采集频率为20Hz,IMU数据为200Hz

rosrun topic_tools throttle messages /zed/zed_node/left/image_rect_color 20 /zed/zed_node/left/image_rect_color2
rosrun topic_tools throttle messages /zed/zed_node/right/image_rect_color 20 /zed/zed_node/right/image_rect_color2
rosrun topic_tools throttle messages /zed/zed_node/imu/data_raw 200 /zed/zed_node/imu/data_raw2

现在话题名从image_rect_color变为image_rect_color2
现在话题名从data_raw变为data_raw2

3.启用左右摄像头可视化功能

//另开一个命令行
rosrun image_view image_view __ns:=view1 image:=/zed/zed_node/left/image_rect_color & rosrun image_view image_view __ns:=view2 image:=/zed/zed_node/right/image_rect_color

修改后:

rosrun image_view image_view __ns:=view1 image:=/zed/zed_node/left/image_rect_color2 & rosrun image_view image_view __ns:=view2 image:=/zed/zed_node/right/image_rect_color2

在这里插入图片描述

4.录制相机参数

//另开一个命令行
rosbag record -O Kalibr_data.bag /zed/zed_node/imu/data_raw /zed/zed_node/left/image_rect_color /zed/zed_node/right/image_rect_color

修改后:

rosbag record -O Kalibr_data.bag /zed/zed_node/imu/data_raw2 /zed/zed_node/left/image_rect_color2 /zed/zed_node/right/image_rect_color2

5.查看记录的数据

rosbag info Kalibr_data.bag

6.获取相机参数

kalibr_calibrate_cameras --bag Kalibr_data.bag --topics /zed/zed_node/left/image_rect_color /zed/zed_node/right/image_rect_color --models pinhole-radtan pinhole-radtan --target april_6x6_80x80cm.yaml
kalibr_calibrate_cameras --bag Kalibr_data.bag --topics /zed/zed_node/left/image_rect_color2 /zed/zed_node/right/image_rect_color2 --models pinhole-radtan pinhole-radtan --target april_6x6_80x80cm.yaml
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Gone_float

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值