Skip to content

Commit c6760f2

Browse files
authored
Update test_euroc.py
1 parent bde7733 commit c6760f2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

evaluation_scripts/test_euroc.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,16 @@ def image_stream(datapath, image_size=[320, 512], stereo=False, stride=1):
126126
tstamps = [float(x.split('/')[-1][:-4]) for x in images_list]
127127

128128
traj_est = PoseTrajectory3D(
129-
positions_xyz=1.095 * traj_est[:,:3],
129+
positions_xyz=1.10 * traj_est[:,:3],
130130
orientations_quat_wxyz=traj_est[:,3:],
131131
timestamps=np.array(tstamps))
132132

133133
traj_ref = file_interface.read_tum_trajectory_file(args.gt)
134134

135135
traj_ref, traj_est = sync.associate_trajectories(traj_ref, traj_est)
136136

137-
if args.stereo:
138-
result = main_ape.ape(traj_ref, traj_est, est_name='traj',
139-
pose_relation=PoseRelation.translation_part, align=True, correct_scale=False)
140-
141-
else:
142-
result = main_ape.ape(traj_ref, traj_est, est_name='traj',
143-
pose_relation=PoseRelation.translation_part, align=True, correct_scale=True)
137+
result = main_ape.ape(traj_ref, traj_est, est_name='traj',
138+
pose_relation=PoseRelation.translation_part, align=True, correct_scale=True)
144139

145140
print(result)
146141

0 commit comments

Comments
 (0)