add print
This commit is contained in:
@@ -60,20 +60,23 @@ 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(
|
||||||
img,
|
img,
|
||||||
flow,
|
flow,
|
||||||
threshold=2,
|
threshold=4,
|
||||||
grid_spacing=10,
|
grid_spacing=10,
|
||||||
arrow_scale=1.0
|
arrow_scale=1.0
|
||||||
)
|
)
|
||||||
@@ -142,6 +145,8 @@ 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:{fnormal}, X {fshearx}, Y{fsheary}")
|
||||||
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):
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ class Tracker:
|
|||||||
error = self.__getForwardBackwardError(
|
error = self.__getForwardBackwardError(
|
||||||
self.__fine_base_frame_queue[i], frame, f)
|
self.__fine_base_frame_queue[i], frame, f)
|
||||||
if error < self.__lower_threshold:
|
if error < self.__lower_threshold:
|
||||||
print("loop closed at frame ", str(i))
|
# print("loop closed at frame ", str(i))
|
||||||
self.__fine_base_frame_queue = self.__fine_base_frame_queue[:
|
self.__fine_base_frame_queue = self.__fine_base_frame_queue[:
|
||||||
i +
|
i +
|
||||||
1]
|
1]
|
||||||
|
|||||||
Reference in New Issue
Block a user