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_robot_startup] Not using yaml file to set email config like receiver mail address #1588

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

tkmtnt7000
Copy link
Member

In this PR, both smach_to_mail.py and email_topic.py stop using yaml file to set email config.

email_topic.py has been used for some months, so it is deprecated rather than completely dropping yaml config.

@knorth55
Copy link
Member

knorth55 commented Oct 3, 2022

i dont see the reason why you dont want to use yaml file...

@tkmtnt7000
Copy link
Member Author

k-okada#71 (comment)
I reflected this comment.
At that time, I thought putting config file under /var/lib/robot/ makes debugging a little difficult...
cc: @708yamaguchi

@708yamaguchi
Copy link
Member

In my understanding, using yaml files is not a problem, but placing them in /var/lib is the problem.

@tkmtnt7000
Copy link
Member Author

Thank you very much.
So... maybe I should restore the ability to read yaml files and set email address as well as email_topic.py.
I dropped supporting yaml file in smach_to_mail.py.

@708yamaguchi
Copy link
Member

Ideally, I would like to use the same interface (e.g., how to specify sender_address) between email_topic.py and smach_to_mail.py.
If another hoge_to_mail.py is added in the future, this interface will be used.

How about defining a new class that can receive email information in both rosparam and yaml?

@knorth55
Copy link
Member

knorth55 commented Oct 3, 2022

the current implementation is ok, I think.
because we can load rosparam from yaml like <rosparam command="load" file="hoge.yaml />.

My point is why you need to write the email address in launch?.
We can share the info and save it in one yaml.

@tkmtnt7000
Copy link
Member Author

My point is why you need to write the email address in launch?.
We can share the info and save it in one yaml.

I see. Thank you for information.
So I should not write email address in launch files directly. We can share this info with other nodes in one yaml.

@knorth55
Copy link
Member

knorth55 commented Oct 3, 2022

So I should not write email address in launch files directly. We can share this info with other nodes in one yaml.

Yes. I think it is better.

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