Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add walk notifier app to notify mail with place and image during walking #69

Closed
wants to merge 78 commits into from

Conversation

iory
Copy link

@iory iory commented Aug 8, 2022

What is this

Walk Notifier

Send an email with the location of the walk and a camera image of the walk.

prerequirement

The key for google map needs to be placed in /var/lib/robot/google_map_location_key.yaml ([email protected]) with 'location_key' as the key.

For JSK members, the yaml file are available at Google Drive

Also, place a yaml file with the email addresses of the sender and receiver in /var/lib/robot/email_topic.yaml.

sender_address: [email protected]
receiver_address: [email protected]

Using this patch, we can get notifications like as follow image during walking.

image

tar.gz Updated (2022-08-30)

https://drive.google.com/drive/folders/1EMpbL3MpARtYtq7C6x-fT9IC53PKwvJ0?usp=sharing

rate.sleep()
rospy.loginfo('[WalkMail] waiting image')

def get_place(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please consider using jsk-ros-pkg#1558, because as you named your node as notifier , so sending E-mail is not important, but to send notification is important.
Current implementation start storing smach description from START. And send email when SMACH goes to END state.
So if we want to send email periodically, we need to write smach like

flowchart TB
  INIT --> START
  START --> GET-LOCATION
  GET-LOCATION  --> END
  END --> WALK
  WALK --> START
  END --> TERMINATE
Loading

https://github.com/k-okada/jsk_robot/blob/pepper_cross/jsk_robot_common/jsk_robot_startup/lifelog/speaking-program-is-started-or-terminated.l

Or, we could update jsk-ros-pkg#1558 to select send notification every state or not.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iory iory force-pushed the unitree-camera-walk-app branch 3 times, most recently from b6813f3 to 2a25400 Compare August 31, 2022 20:49
@tkmtnt7000
Copy link
Collaborator

0E59DAD7-C62B-4983-B3A9-4E1E5BB68C3C
030BC169-CFB6-49BB-8224-11016FD9EF8C
0EB567C1-49BF-4FC3-9B1D-219FC925DEF1

@tkmtnt7000
Copy link
Collaborator

tkmtnt7000 commented Sep 1, 2022

ぼくもこのプルリクをつかって試してみて,動くことを確認しました.
新しいロボットでメールを出すときの最初の設定に関して,jsk-ros-pkg#1581 に出しました.

@k-okada
Copy link
Owner

k-okada commented Sep 22, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants