使用kalibr标定d435i的单目、双目

安装kalibr
参考
https://zhuanlan.zhihu.com/p/309287821
出现了C++17兼容性的问题,修改对应的CMAKELists,加上
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -w")
出现了一些opencv版本导致的编译问题,逐个去修改就好
遇到了一些python问题,参考
如果pip安装python-igraph失败就用apt-get insatll
error code: ImportError: dynamic module does not define module export function (PyInit_libnumpy_eigen)
https://blog.csdn.net/weixin_44049220/article/details/124690787
过程参考
http://zhaoxuhui.top/blog/2020/09/29/intel-realsense-D435i-calibration-kalibr.html
https://blog.csdn.net/heyijia0327/article/details/83583360
运行双目bag中发生的错误
Cameras are not connected through mutual observations, please check the dataset. Maybe adjust the approx. sync. tolerance.
我调整了image topic的发布频率为20HZ(单目时用4HZ),注释一部分python代码,详细见github issue
https://github.com/ethz-asl/kalibr/issues/332

具体流程

//启动相机
roslaunch realsense2_camera rs_camera_copy.launch
//查看
rqt_image_view
//修改发布信息
rosrun topic_tools throttle messages /camera/infra1/image_rect_raw 20.0 /left
rosrun topic_tools throttle messages /camera/infra2/image_rect_raw 20.0 /right
//录制rosbag,ctrl+c结束录制
rosbag record -O stereo_calibra.bag /left /right
//到kalibrworkspace
//source
rosrun kalibr kalibr_calibrate_cameras --bag stereo_calibra.bag --topics /left /right --models pinhole-equi pinhole-equi --target april_6x6.yaml --show-extractio --approx-sync 0.04
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值