add print

This commit is contained in:
TPP-G6
2026-01-25 10:39:33 +08:00
parent 3f92d5161b
commit aa9872b3ab
2 changed files with 9 additions and 4 deletions
+8 -3
View File
@@ -60,20 +60,23 @@ 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,
sensor.info.IMG,
sensor.info.CONTOUR,
sensor.info.CENTROID,
sensor.info.DEPTH
sensor.info.DEPTH,
sensor.info.FNORMAL,
sensor.info.FSHEARX,
sensor.info.FSHEARY
)
arrows = orisys.util.draw_arrows(
img,
flow,
threshold=2,
threshold=4,
grid_spacing=10,
arrow_scale=1.0
)
@@ -142,6 +145,8 @@ def main():
print(f"Stop writing, total frames: {frame_count}")
frame_count = 0
if key == ord("p"):
print(f"normal force:{fnormal}, X {fshearx}, Y{fsheary}")
if key == ord("i"):
save_mode_index += 1
if save_mode_index >= len(save_mode):