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

WaitSet::wait does not wait indefinitely when timeout is None #104

Closed
Soya-Onishi opened this issue Apr 15, 2022 · 0 comments · Fixed by #105
Closed

WaitSet::wait does not wait indefinitely when timeout is None #104

Soya-Onishi opened this issue Apr 15, 2022 · 0 comments · Fixed by #105

Comments

@Soya-Onishi
Copy link
Contributor

Hi.
I am new to ros2 with rust and tried to run minimal_publisher and minimal_subscriber.
However minimal_subscriber does not work in expect ( no output is displayed ).
After investigation, I found that there are some problems in WaitSet::wait().

Current Behavior
Even if passing None to WaitSet::wait, it does not wait until some messages are passed and return immediately (i.e. non-blocking).

Expected Behavior
Waiting (blocking) indefinitely until some messages are passed.

As described here, timeout_ns should be minus if procedure wants to wait indefinitely, but current implementation make rcl_wait non-blocking function by passing zero.

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 a pull request may close this issue.

1 participant