diff --git a/mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py b/mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py index 9857a631..367785c8 100755 --- a/mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py +++ b/mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py @@ -1645,13 +1645,19 @@ async def shutdown_robot(self): f"bash -c \"wall 'Shutting down.'\"", shell=True, ) - for oled_name in ["right", "middle", "left"]: # TODO: use the oled obj directly without hard-coded names + for oled_name in [ + "right", + "middle", + "left", + ]: # TODO: use the oled obj directly without hard-coded names try: - set_image = rospy.ServiceProxy(f'/mirte/set_{oled_name}_image', SetOLEDImage) + set_image = rospy.ServiceProxy( + f"/mirte/set_{oled_name}_image", SetOLEDImage + ) set_image("text", "Shutting down") - + except rospy.ServiceException as e: - print("Service call failed: %s"%e) + print("Service call failed: %s" % e) except Exception as e: print("shutdown image err", e) rospy.logerr("Triggering shutdown, shutting down in 10s")