Skip to content

Commit

Permalink
Update collision_detector_node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nikunjparmar828 authored Aug 12, 2024
1 parent 8212124 commit a10a9af
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions collision_monitor/scripts/collision_detector_node.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -105,4 +108,4 @@ def send_email(self):
try:
CollisionDetector()
except rospy.ROSInterruptException:
pass
pass

0 comments on commit a10a9af

Please sign in to comment.