Skip to content

Commit 1c4cb8b

Browse files
add early return if no data
1 parent 3fb6518 commit 1c4cb8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spot_wrapper/calibration/spot_in_hand_camera_calibration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def convert_pinhole_intrinsic_to_proto(intrinsic_matrix):
146146
except yaml.YAMLError as e:
147147
print("Error parsing YAML file:", e)
148148
else:
149-
print(f"File '{cal}' does not exist.")
149+
print(f"File '{cal}' does not exist. Not sending calibration to robot.")
150+
return
150151

151152
depth_intrinsics = data.get("depth_intrinsic")
152153
rgb_intrinsics = data.get("rgb_intrinsic")

0 commit comments

Comments
 (0)