ROS標定IDS相機


參考

棋盤格參數

  • 焦點個數(長寬方向)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的實驗結果






免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM