Skip to content

Commit

Permalink
[jsk_robot_startup] Set INFO as message bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmtnt7000 authored and knorth55 committed Sep 1, 2022
1 parent 8882da7 commit 54e4141
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ def _send_mail(self, subject, state_list):
image.img_data = x['IMAGE']
email_msg.body.append(image)
email_msg.body.append(changeline)
for x in state_list:
if 'INFO' in x:
description = EmailBody()
description.type = 'text'
description.message = x['INFO']
email_msg.body.append(description)
info = EmailBody()
info.type = 'text'
info.message = x['INFO']
email_msg.body.append(info)
email_msg.body.append(changeline)
# rospy.loginfo("body:{}".format(email_msg.body))

Expand Down

0 comments on commit 54e4141

Please sign in to comment.