Skip to content

Commit

Permalink
[jsk_robot_startup] Use /email_topic/mail_title for email title
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmtnt7000 authored and knorth55 committed Oct 7, 2022
1 parent 7982978 commit 1dbf86c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def _send_mail(self, subject, state_list):

if subject:
email_msg.subject = subject
elif rospy.has_param("/email_topic/mail_title"):
email_msg.subject = rospy.get_param("/email_topic/mail_title")
else:
email_msg.subject = 'Message from {}'.format(rospy.get_param('/robot/name', 'robot'))

Expand Down

0 comments on commit 1dbf86c

Please sign in to comment.