mirror of
https://github.com/UGA-Innovation-Factory/UR10-Sentry.git
synced 2026-01-22 15:07:01 +00:00
cleanup processes on stop
This commit is contained in:
11
main.py
11
main.py
@@ -60,6 +60,11 @@ ur.await_stop = True
|
|||||||
ur.forward_position()
|
ur.forward_position()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
ur.move_robot_base(-current_joystick[0])
|
try:
|
||||||
print("Setting robot base velocity to: ", current_joystick[0])
|
ur.move_robot_base(-current_joystick[0])
|
||||||
time.sleep(0.2)
|
print("Setting robot base velocity to: ", current_joystick[0])
|
||||||
|
time.sleep(0.2)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
camera_joystick.stop()
|
||||||
|
joystick_scheduler.stop()
|
||||||
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user