|
|
@ -213,7 +213,6 @@ if __name__ == '__main__': |
|
|
cv2.imshow("record image", tv_resized_image) |
|
|
cv2.imshow("record image", tv_resized_image) |
|
|
key = cv2.waitKey(1) & 0xFF |
|
|
key = cv2.waitKey(1) & 0xFF |
|
|
if key == ord('q'): |
|
|
if key == ord('q'): |
|
|
stop_listening() |
|
|
|
|
|
running = False |
|
|
running = False |
|
|
if args.sim: |
|
|
if args.sim: |
|
|
publish_reset_category(2, reset_pose_publisher) |
|
|
publish_reset_category(2, reset_pose_publisher) |
|
|
@ -260,6 +259,7 @@ if __name__ == '__main__': |
|
|
# quit teleoperate |
|
|
# quit teleoperate |
|
|
if tele_data.tele_state.right_aButton: |
|
|
if tele_data.tele_state.right_aButton: |
|
|
running = False |
|
|
running = False |
|
|
|
|
|
stop_listening() |
|
|
# command robot to enter damping mode. soft emergency stop function |
|
|
# command robot to enter damping mode. soft emergency stop function |
|
|
if tele_data.tele_state.left_thumbstick_state and tele_data.tele_state.right_thumbstick_state: |
|
|
if tele_data.tele_state.left_thumbstick_state and tele_data.tele_state.right_thumbstick_state: |
|
|
sport_client.Damp() |
|
|
sport_client.Damp() |
|
|
|