From 5702cb32da06370a611e01683dcc2cc7c4885f48 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 23 Jan 2021 13:35:53 +0100 Subject: [PATCH] small fixes --- GabHoo_settings.yaml | 28 ---------------------------- run.py | 3 --- utils.py | 3 +-- 3 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 GabHoo_settings.yaml diff --git a/GabHoo_settings.yaml b/GabHoo_settings.yaml deleted file mode 100644 index 4eacff6..0000000 --- a/GabHoo_settings.yaml +++ /dev/null @@ -1,28 +0,0 @@ -SLAM.alg: "OrbSlam3" -#-------------------------------------------------------------------------------------------- -# SLAM Method: change with the name of the .py file in whitch there are the class SLAM -#-------------------------------------------------------------------------------------------- - -#-------------------------------------------------------------------------------------------- -# SLAM Params: add your own to run the algorithm -#-------------------------------------------------------------------------------------------- -SLAM.vocab_path: "slam_method/Settings/ORBvoc.bin" -SLAM.settings_path: "slam_method/Settings/GabHoo_camera_settings.yaml" - -#-------------------------------------------------------------------------------------------- -# Drawer Params: the extra params of trajectory_drawer class -# Params Guide https://slampy.readthedocs.io/en/latest/config.html -#-------------------------------------------------------------------------------------------- - -Drawer.eye.x: -18.0 -Drawer.eye.y: -13.0 -Drawer.eye.z: -55.0 -Drawer.center.x: -17.0 -Drawer.center.y: -8.0 -Drawer.scale_grade.x: 1.0 -Drawer.scale_grade.y: 1.0 -Drawer.scale_grade.z: 10.0 -Drawer.aspectratio.x: 50 -Drawer.aspectratio.y: 50 -Drawer.aspectratio.z: 100 -Drawer.point_size: 2 diff --git a/run.py b/run.py index ce54b01..7df0e2b 100644 --- a/run.py +++ b/run.py @@ -32,7 +32,6 @@ def run(args): print("\n") - # TODO: generic loader an not KITTI one if args.data_type == "TUM": @@ -41,8 +40,6 @@ def run(args): image_filenames, timestamps = load_images_KITTI_VO(args.dataset) elif args.data_type == "OTHERS": image_filenames, timestamps = load_images_OTHERS(args.dataset) - - num_images = len(image_filenames) diff --git a/utils.py b/utils.py index 49a2be6..dc68040 100644 --- a/utils.py +++ b/utils.py @@ -232,8 +232,7 @@ def save_pose_txt(args, name, pose): """ pose_file_path = os.path.join(args.dest, "pose.txt") fp = open(pose_file_path, "a") - pose34 = pose[:3] #prende dal primo al terzo elemento (partendo da 0) dell'array - + pose34 = pose[:3] fp.write(name) for row in pose34: fp.write(" ")