update calibration script

This commit is contained in:
unknown
2026-01-25 10:43:33 +08:00
parent a516acb3ac
commit cec11653c7
+8 -2
View File
@@ -60,14 +60,17 @@ def main():
sensor.compute_deformation() sensor.compute_deformation()
sensor.compute_contact() 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.FPS,
sensor.info.VRAW, sensor.info.VRAW,
sensor.info.VNORMAL, sensor.info.VNORMAL,
sensor.info.IMG, sensor.info.IMG,
sensor.info.CONTOUR, sensor.info.CONTOUR,
sensor.info.CENTROID, sensor.info.CENTROID,
sensor.info.DEPTH sensor.info.DEPTH,
sensor.info.FNORMAL,
sensor.info.FSHEARX,
sensor.info.FSHEARY
) )
arrows = orisys.util.draw_arrows( arrows = orisys.util.draw_arrows(
@@ -142,6 +145,9 @@ def main():
print(f"Stop writing, total frames: {frame_count}") print(f"Stop writing, total frames: {frame_count}")
frame_count = 0 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"): if key == ord("i"):
save_mode_index += 1 save_mode_index += 1
if save_mode_index >= len(save_mode): if save_mode_index >= len(save_mode):