Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendJan committed Apr 30, 2024
1 parent ef49e18 commit 43097f9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 43097f9

Please sign in to comment.