mirror of
https://github.com/UGA-Innovation-Factory/UR10-Sentry.git
synced 2026-01-26 16:07:01 +00:00
added missing exception print
This commit is contained in:
@@ -40,7 +40,8 @@ class URSentry:
|
|||||||
self.robot.get_joint_speeds()
|
self.robot.get_joint_speeds()
|
||||||
except KeyboardInterrupt as ki:
|
except KeyboardInterrupt as ki:
|
||||||
raise ki
|
raise ki
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
print("########################################################")
|
print("########################################################")
|
||||||
print("#### MODBUS HEALTHCHECK FAILED ####")
|
print("#### MODBUS HEALTHCHECK FAILED ####")
|
||||||
print("########################################################")
|
print("########################################################")
|
||||||
@@ -314,7 +315,7 @@ class URSentry:
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
host = "172.22.114.160"
|
host = "172.22.114.160"
|
||||||
sentry = URSentry(host)
|
sentry = URSentry(host)
|
||||||
#sentry.sentry_position()
|
sentry.sentry_position()
|
||||||
# sleep(3)
|
# sleep(3)
|
||||||
#sentry.robot.movej(sentry.looking_down_pose, a=0.5, v=1.5)
|
#sentry.robot.movej(sentry.looking_down_pose, a=0.5, v=1.5)
|
||||||
#sleep(3)
|
#sleep(3)
|
||||||
|
|||||||
Reference in New Issue
Block a user