Skip to content

Commit

Permalink
fixed a typo in the units for the translation error printed for h_T_c (
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazadhum committed May 8, 2024
1 parent 1e39b0f commit 35f4d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom_evaluation/scripts/other_calibrations/cv_eye_in_hand.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ def main():
# --------------------------------------------------
h_T_c_ground_truth = getTransform(from_frame=args['hand_link'],
to_frame=dataset['calibration_config']['sensors'][args['camera']]['link'],
transforms=dataset['collections'][selected_collection_key]['transforms'])
transforms=dataset_ground_truth['collections'][selected_collection_key]['transforms'])
print(Fore.GREEN + 'Ground Truth h_T_c=\n' + str(h_T_c_ground_truth))

print('estimated h_T_c=\n' + str(h_T_c))

translation_error, rotation_error, _, _, _, _, _, _ = compareTransforms(
h_T_c, h_T_c_ground_truth)
print('Etrans = ' + str(round(translation_error*1000, 3)) + ' (m)')
print('Etrans = ' + str(round(translation_error*1000, 3)) + ' (mm)')
print('Erot = ' + str(round(rotation_error*180/math.pi, 3)) + ' (deg)')

# --------------------------------------------------
Expand Down

0 comments on commit 35f4d72

Please sign in to comment.