From a10a9aff37100c84d51cc2fd01c6e2580d499c09 Mon Sep 17 00:00:00 2001 From: Nikunj Parmar Date: Mon, 12 Aug 2024 15:55:19 -0500 Subject: [PATCH] Update collision_detector_node.py --- collision_monitor/scripts/collision_detector_node.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/collision_monitor/scripts/collision_detector_node.py b/collision_monitor/scripts/collision_detector_node.py index a00fe13f..33e9bc5f 100755 --- a/collision_monitor/scripts/collision_detector_node.py +++ b/collision_monitor/scripts/collision_detector_node.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +#--------------------------------------------------------------------------------- +# Make sure to change the email address and password in this code before executing +#--------------------------------------------------------------------------------- import rospy from geometry_msgs.msg import PoseWithCovarianceStamped import math @@ -72,9 +75,9 @@ def check_collision(self): self.pub_collision_status.publish(str(False)) def send_email(self): - sender_email = 'nikunjparmar828@gmail.com' - sender_password = 'xhdu ypdp dbxv leey' - receiver_email = 'nikunjparmar828@gmail.com' + sender_email = 'xyz@gmail.com' + sender_password = ["PASSWORD GOES HERE"] + receiver_email = 'xyz@gmail.com' # Create the email msg = MIMEMultipart() msg['From'] = sender_email @@ -105,4 +108,4 @@ def send_email(self): try: CollisionDetector() except rospy.ROSInterruptException: - pass \ No newline at end of file + pass