[ros-users] camera calibration [unstable] distortion_model n…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
+ (text/html)
+ distortion_model.diff (text/x-patch)
Slet denne besked
Besvar denne besked
Skribent: User discussions
Dato:  
Til: User discussions
Emne: [ros-users] camera calibration [unstable] distortion_model not set.
Hi all,

I have found that camera calibration node don't set distortion_model field
of CameraInfo.
So I need to edit every new calibration file.
Patch correcting this behavior in appendix.

Pozdrawiam
Konrad Banachowicz
Index: src/camera_calibration/calibrator.py
===================================================================
--- src/camera_calibration/calibrator.py    (wersja 35214)
+++ src/camera_calibration/calibrator.py    (kopia robocza)
@@ -244,6 +244,7 @@
         """ Used by :meth:`as_message`.  Return a CameraInfo message for the given calibration matrices """
         msg = sensor_msgs.msg.CameraInfo()
         (msg.width, msg.height) = self.size
+    msg.distortion_model = "plumb_bob"
         msg.D = [d[i,0] for i in range(d.rows)]
         while len(msg.D)<5:
             msg.D.append(0)