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

Smach to email/twitter #1558

Merged
merged 19 commits into from
Aug 27, 2022
Merged

Smach to email/twitter #1558

merged 19 commits into from
Aug 27, 2022

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Aug 9, 2022

add jsk_robot_startup/scripts/smach_to_mail.py which sends smach message to /email, /tweet, etc...

based on @tkmtnt7000 's code k-okada#60 (comment)
This PR depends on jsk-ros-pkg/jsk_3rdparty#371

example SMACH examples can be found at #1528

@mqcmd196 Can you add _send_google_chat function to this program ?

@tkmtnt7000
Copy link
Member

I am sorry for late for send PR. This PR is related to knorth55#303 and more feature.

@k-okada
Copy link
Member Author

k-okada commented Aug 9, 2022

flowchart TB
    subgraph S[Demo Code Running on SMACH]
      START --> State_1
      State_1 --> State_2
      State_2 --> END
    end
   subgraph E[SMACH To Notification]
      id1[(state list<br>DESCRIPTION / IMAGE<br>DESCRIPTION / IMAGE<br>...)]
     id1 --> email[[pub /email jsk_robot_startup::Email]]
     id1 --> tweet[[pub /tweet std_msgs::String]] 
   end
   S -->|"[{'DESCRIPTION': string, 'IMAGE': base64}]"| E
   email --> email_body(["DESCRIPTION[0]<br>DESCRIPTION[1]<br>IMAGE[1]<br>DESCRIPTION[1]<br>IMAGE[1]<br>..."])
   tweet --> tweet_body1(["DESCRIPTION[0]"])
   tweet_body1 --> tweet_body2(["DESCRIPTION[1]<br>IMAGE[1]"])
   tweet_body2 --> tweet_body3(["DESCRIPTION[2]<br>IMAGE[2]"])




Loading

@mqcmd196
Copy link
Member

mqcmd196 commented Aug 9, 2022

okay, I'll do it tonight

@k-okada
Copy link
Member Author

k-okada commented Aug 9, 2022

@tkmtnt7000, please split knorth55#303 into smach-kitchen-demo and smach-to-email, and if you find something to add here, please create PR, for example knorth55@8bb35d4, knorth55@c2c0b04 and more?

[jsk_robot_startup] Fix dependent on linter and support Python3
@mqcmd196
Copy link
Member

Sorry for being late, please check k-okada#72

@k-okada
Copy link
Member Author

k-okada commented Aug 26, 2022

note: we may remove /var/lib/robot/email_topic.yaml k-okada#71 (comment)

[jsk_robot_startup/smach_to_mail] Set sender address and receiver address from rosparam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants