Skip to content

Commit

Permalink
fixed available methods list #995
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazadhum committed Oct 16, 2024
1 parent beb0f1b commit bfe1074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atom_evaluation/scripts/other_calibrations/cv_eye_to_hand_robot_world.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
default=False, help="shows images for each camera")
ap.add_argument(
"-mn", "--method_name", required=False, default='sha',
help="Hand eye method. One of ['sha', 'li'].",
help="Hand eye method. One of ['shah', 'li'].",
type=str)
ap.add_argument("-sfr", "--save_file_results", help="Store the results",
action='store_true', default=False)
Expand Down Expand Up @@ -151,13 +151,13 @@ def main():
# Check that the camera has rgb modality
assertSensorModality(dataset, args['camera'], 'rgb')

available_methods = ['tsai', 'park', 'horaud', 'andreff', 'daniilidis']
available_methods = ['shah', 'li']
if args['method_name'] not in available_methods:
atomError('Unknown method. Select one from ' + str(available_methods))

if args['method_name'] == 'tsai':
if args['method_name'] == 'shah':
method = cv2.CALIB_ROBOT_WORLD_HAND_EYE_SHAH
elif args['method_name'] == 'park':
elif args['method_name'] == 'li':
method = cv2.CALIB_ROBOT_WORLD_HAND_EYE_LI
else:
atomError('Unknown method. Select one from ' + str(available_methods))
Expand Down

0 comments on commit bfe1074

Please sign in to comment.