Skip to content

Commit 9f3fd52

Browse files
minor bug fix
Signed-off-by: Tiffany Cappellari <tcappellari@theaiinstitute.com>
1 parent 9a85b3e commit 9f3fd52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spot_wrapper/calibration/calibrate_spot_hand.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def calibrate_spot_hand() -> None:
7171
args, aruco_dict, charuco = setup_calibration_param(parser)
7272

7373
# Collect new data and calibrate
74-
if not args.from_data:
74+
if not args.from_data and not args.from_yaml:
7575
in_hand_bot, args = create_robot(args, charuco=charuco, aruco_dict=aruco_dict)
7676

7777
logger.warning("This script moves the robot around. !!! USE AT YOUR OWN RISK !!!")
@@ -108,7 +108,7 @@ def calibrate_spot_hand() -> None:
108108
elif args.from_yaml:
109109
try:
110110
in_hand_bot, args = create_robot(args, charuco=charuco, aruco_dict=aruco_dict)
111-
with open(args.data_path, "r") as file:
111+
with open(args.result_path, "r") as file:
112112
calibration = yaml.safe_load(file)
113113
send_to_robot = input(
114114
f"Loaded calibration data:\n{calibration}\nDo you want to send this calibration to the robot?"

0 commit comments

Comments
 (0)