Skip to content

Commit 6550415

Browse files
committed
arkit open3d convention bug fix
1 parent 6dcd65e commit 6550415

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

util/multiscan.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,10 @@ def load_pose(scan_dir, frame_id):
634634
for entry in reader:
635635
if entry.get("frame_id") == frame_id:
636636
transform = np.asarray(entry.get('transform'))
637-
pose = np.reshape(transform, (4, 4), order='F')
638-
aligned_pose = inv_transform @ pose #align camera poses
637+
transform = np.reshape(transform, (4, 4), order='F')
638+
transform = np.dot(transform, np.diag([1, -1, -1, 1]))
639+
transform = transform / transform[3][3]
640+
aligned_pose = inv_transform @ transform #align camera poses
639641
return aligned_pose
640642

641643
raise ValueError(f"Pose for frame_id {frame_id} not found in {pose_path}")

0 commit comments

Comments
 (0)