a
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user