From 5d56558447b43ba264ff272d4fc1fcc28801ee7d Mon Sep 17 00:00:00 2001 From: TPP-G6 Date: Sun, 25 Jan 2026 10:50:34 +0800 Subject: [PATCH] a --- calibration_data_collection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calibration_data_collection.py b/calibration_data_collection.py index bc26b96..9b01a58 100644 --- a/calibration_data_collection.py +++ b/calibration_data_collection.py @@ -60,7 +60,7 @@ def main(): sensor.compute_deformation() sensor.compute_contact() - fps, flow, vnormal, img, contour, centroid, depth_map = sensor.read_info( + fps, flow, vnormal, img, contour, centroid, depth_map, fnormal, fshearx, fsheary = sensor.read_info( sensor.info.FPS, sensor.info.VRAW, sensor.info.VNORMAL, @@ -145,6 +145,9 @@ def main(): print(f"Stop writing, total frames: {frame_count}") frame_count = 0 + if key == ord("p"): + print(f"Normal Force: {vnormal:.1f} kgf, Shear ForceX: {fshearx:.1f} kgf, Shear ForceY: {fsheary:.1f} kgf") + if key == ord("i"): save_mode_index += 1 if save_mode_index >= len(save_mode):