码迷,mamicode.com
首页 > 其他好文 > 详细

ROS标定IDS相机

时间:2017-02-10 11:34:11      阅读:578      评论:0      收藏:0      [点我收藏+]

标签:param   form   长度   span   单位   .net   自定义   按钮   正方形   

参考

棋盘格参数

  • 焦点个数(长宽方向)8x6,边长0.0435m

标定步骤

    1. ROS下运行摄像头,其中相机发布图像的节点名/Camera/IDS_mono_image
  1. rosrun pubimage pubmono
  • 2.运行ROS相机标定程序,开始运行rosrun camera_calibration cameracalibrator.py –size 8x6 –square 0.0435 image:=/Camera/IDS_mono_image camera:=/Camera
    出现"service not found "错误,按照添加–no-service-check解决http://www.mamicode.com/info-detail-899605.html
  1. rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.0435 image:=/Camera/IDS_mono_image camera:=/Camera --no-service-check
  1. (‘D = ‘, [-0.2560119141217324, 0.09121820514373571, 0.0008929015537432972, -0.0002949864883705548, 0.0])
  2. (‘K = ‘, [560.745775283255, 0.0, 356.3142864442747, 0.0, 562.0282510615026, 240.27152352754922, 0.0, 0.0, 1.0])
  3. (‘R = ‘, [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0])
  4. (‘P = ‘, [493.8046875, 0.0, 350.6994767608121, 0.0, 0.0, 533.846435546875, 240.13280532319186, 0.0, 0.0, 0.0, 1.0, 0.0])
  5. None
  6. # oST version 5.0 parameters
  7. [image]
  8. width
  9. 752
  10. height
  11. 480
  12. [narrow_stereo]
  13. camera matrix
  14. 560.745775 0.000000 356.314286
  15. 0.000000 562.028251 240.271524
  16. 0.000000 0.000000 1.000000
  17. distortion
  18. -0.256012 0.091218 0.000893 -0.000295 0.000000
  19. rectification
  20. 1.000000 0.000000 0.000000
  21. 0.000000 1.000000 0.000000
  22. 0.000000 0.000000 1.000000
  23. projection
  24. 493.804688 0.000000 350.699477 0.000000
  25. 0.000000 533.846436 240.132805 0.000000
  26. 0.000000 0.000000 1.000000 0.000000
  • 5.点击save按钮保存标定数据,在/tmp目录下会得到一个压缩包,包含标定用的图像,和标定参数的.txt,.ymal文件
    技术分享

使用校准后的数据在D638的实验结果

技术分享





ROS标定IDS相机

标签:param   form   长度   span   单位   .net   自定义   按钮   正方形   

原文地址:http://www.cnblogs.com/youzx/p/6385493.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!