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

[jsk_unitree_startup] Send Unitree-launch-email #24

Open
wants to merge 19 commits into
base: unitree
Choose a base branch
from

Conversation

tkmtnt7000
Copy link
Collaborator

@tkmtnt7000 tkmtnt7000 commented May 9, 2022

This PR enables unitree to send email when robot launches.
Tidbits are added to make the email more user-friendly.

cc:@iory

@tkmtnt7000
Copy link
Collaborator Author

@a-ichikuraに伺ったところ,豆知識を表示するだけではネットニュースのような無機質な感じがしたということで,ロボット側から意思を持って返事している感じが出るといいのかなと思いました. こんな感じでその日の天気を拾ってきて,まずは手軽にif文で天気に応じてそれっぽい返事をするようにしました.

Comment on lines 74 to 95
if "晴" in weather:
forecast_tuple = (
'日差しに気をつけて。',
'お散歩しよう!',
)
elif "雨" in weather:
forecast_tuple = (
'部屋の中で遊ぼう!',
'傘忘れていない?',
)
elif "雲" or "曇" or "くもり" in weather:
forecast_tuple = (
'晴れたらいいな',
)
elif "雪" in weather:
forecast_tuple = (
'雪合戦しよう!',
'寒さに気をつけて',
)
else:
forecast_tuple = (' ')
forecast_text += random.choice(forecast_tuple)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@a-ichikura
こんな感じで適当な言葉を追加してあるので,思いついたら色々と追加していただけると嬉しいです.

@tkmtnt7000
Copy link
Collaborator Author

Cc:@MiyabiTane

@mqcmd196
Copy link

@tkmtnt7000 add python3-bs4 exec_depend in package.xml

@tkmtnt7000
Copy link
Collaborator Author

@mqcmd196 Add python3-bs4 in e4df359

@mqcmd196
Copy link

amazing!

【update】unitreeのメールに星座占いを追加
Copy link
Owner

@k-okada k-okada left a comment

Choose a reason for hiding this comment

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

@tkmtnt7000
Copy link
Collaborator Author

please swtich to existing ros node to send email jsk-ros-pkg#1485
I think we could use go1's autostart process to send email, #32, or run in unitree_bringup.launch #34 process.

Sorry for late response. I'll do that.

@tkmtnt7000
Copy link
Collaborator Author

Use email_topic.py and use autostart program

@k-okada
Copy link
Owner

k-okada commented Sep 22, 2022

duplicates of #65 ???

@tkmtnt7000
Copy link
Collaborator Author

duplicates of #65 ???

It is not perfectly the same as #65, but I believe it can be merged into one.

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

Successfully merging this pull request may close these issues.

4 participants