From ea9d127b5c17584d7865a76f42aae2cd6d4c0c56 Mon Sep 17 00:00:00 2001
From: Mederic Fourmy <mederic.fourmy@gmail.com>
Date: Sat, 23 Apr 2022 18:42:48 +0200
Subject: [PATCH] Removed scientific notation in camera yaml because of yaml
 parsing bug

---
 yaml/camera_euroc_mav0.yaml            |  2 +-
 yaml/camera_euroc_mav0_notangdist.yaml | 26 --------------------------
 yaml/demo_visual_odometry_euroc.yaml   |  2 +-
 3 files changed, 2 insertions(+), 28 deletions(-)
 delete mode 100644 yaml/camera_euroc_mav0_notangdist.yaml

diff --git a/yaml/camera_euroc_mav0.yaml b/yaml/camera_euroc_mav0.yaml
index 1fdeacd..09cb584 100644
--- a/yaml/camera_euroc_mav0.yaml
+++ b/yaml/camera_euroc_mav0.yaml
@@ -11,7 +11,7 @@ distortion_model: plumb_bob
 distortion_coefficients:
   rows: 1
   cols: 5
-  data: [-0.28340811, 0.07395907, 0.00019359, 1.76187114e-05, 0.000000]
+  data: [-0.28340811, 0.07395907, 0.00019359, 0.0000176187114, 0.000000]
 rectification_matrix:
   rows: 3
   cols: 3
diff --git a/yaml/camera_euroc_mav0_notangdist.yaml b/yaml/camera_euroc_mav0_notangdist.yaml
deleted file mode 100644
index ace8329..0000000
--- a/yaml/camera_euroc_mav0_notangdist.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-width: 752
-height: 480
-camera_name: narrow_stereo
-camera_matrix:
-  rows: 3
-  cols: 3
-  data: [458, 0.000000, 367.215,
-         0.000000, 457.296, 248.375,
-         0.000000, 0.000000, 1.000000]
-distortion_model: plumb_bob
-distortion_coefficients:
-  rows: 1
-  cols: 5
-  data: [-0.28340811, 0.07395907, 0.00019359, 0.0, 0.000000]
-rectification_matrix:
-  rows: 3
-  cols: 3
-  data: [1.000000, 0.000000, 0.000000,
-         0.000000, 1.000000, 0.000000,
-         0.000000, 0.000000, 1.000000]
-projection_matrix:
-  rows: 3
-  cols: 4
-  data: [355.63, 0.000000, 362.27, 0.000000,
-         0.000000, 417.16, 249.65, 0.000000,
-         0.000000, 0.000000, 1.000000, 0.000000]
diff --git a/yaml/demo_visual_odometry_euroc.yaml b/yaml/demo_visual_odometry_euroc.yaml
index 185118f..d45e635 100644
--- a/yaml/demo_visual_odometry_euroc.yaml
+++ b/yaml/demo_visual_odometry_euroc.yaml
@@ -36,7 +36,7 @@ config:
       extrinsic:
         pose: [0,0,0,  0,0,0,1]
       using_raw: false
-      follow: "camera_euroc_mav0_notangdist.yaml"
+      follow: "camera_euroc_mav0.yaml"
 
   processors:
     -
-- 
GitLab