- This repository is forked from the official RTDE repository.
- This repository modifies
../examples/record.py
to monitor the safety status of the robot. When the robot leaves normal mode, a notification email containing data is sent to a recipient(s).
- Python
- Gmail account
- Git
-
Enable and setup 2-factor authentication for the sending Google account.
-
Clone this repository into a directory of your choice with the following command:
git clone https://github.com/Shawn-Armstrong/RTDE_Python_Client_Library_Safety.git
-
In
../examples/record.py
at the top, add your email related information.Looks like this
email_sender = es.EmailSender( smtp_host="smtp.gmail.com", smtp_port=587, username='<SENDER_EMAIL>@gmail.com', token_password='<YOUR_APP_PASSWORD>', # NOT your ordinary sign-in password; look at email-sender README.md. recipients=["[email protected]", "[email protected]"] )
-
Run the program with the following command using your robot's IPv4:
cd RTDE_Python_Client_Library_Safety\examples python record.py --host YOUR_IPv4_GOES_HERE --frequency 10
- This setup monitors the robot's safety status. You can easily modify the conditional in
record.py
to do something other then send an email.