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

Wait until the omniorb log file is generated in clear-omninames.sh #20

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

mmurooka
Copy link
Member

@mmurooka mmurooka commented Sep 2, 2022

#19 does not resolve the error described there, and this PR will resolve it.

The last tail command in clear-omninames.sh is causing an error if the file is not found (I guess that the log file was sometimes not generated within 1sec due to the limited computing resources on the CI), so it should be fixed. Sorry for the simple mistake 😓, but I still think the previous PR is not too bad (no need to revert).

With this PR patch, clear-omninames.sh will never return in the unlikely event that the omniorb service does not create a log file. Please let me know if you have any problems with this behavior.

@gergondet
Copy link
Member

Thanks @mmurooka

Please let me know if you have any problems with this behavior.

In case something goes wrong in a surprising way in CI I think it's better to have this script timeout after e.g. 10 seconds, otherwise this gets stuck in an infinite loop and you don't get any feedback :(

@mmurooka
Copy link
Member Author

mmurooka commented Sep 5, 2022

@gergondet Thank you for feedback. Do you think 953227e is good?

Copy link
Member

@gergondet gergondet left a comment

Choose a reason for hiding this comment

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

Thanks @mmurooka I'll merge this right away

@gergondet gergondet merged commit bc76eb8 into jrl-umi3218:master Sep 5, 2022
@mmurooka mmurooka deleted the patch-1 branch September 5, 2022 01:38
gergondet added a commit that referenced this pull request Sep 5, 2022
* Improve clear-omninames.sh (#19/#20)
* Fix initialization of robot attitude (#21)
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.

2 participants