-
Notifications
You must be signed in to change notification settings - Fork 163
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
fixed rcl_wait return error when timer cancelled #1003
Conversation
ros2/rclcpp#1977 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@ladianchad thanks for the contribution, this looks good to me. can you address DCO error? |
@iuhilnehc-ynos requesting another review on this. CC: @ivanpauno |
ff90d9c
to
e5e1820
Compare
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
Signed-off-by: kevin <[email protected]>
e5e1820
to
3554552
Compare
yes, I fixed DCO error and rebased. |
LGTM. The default branch to push is |
oh. thanks i changed pr branch to humble |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@ladianchad can you address @ivanpauno comment ? then i will start CI. |
Signed-off-by: ladianchad <[email protected]>
I applied review in 1554188 :) |
@ladianchad thanks for the quick response. CI: |
Linux Build Status is unstable, is it ok?? I don't quite understand ROS CI yet. |
Thanks! |
@Mergifyio backport humble galactic foxy |
* add error msg in rcl wait Signed-off-by: kevin <[email protected]> * error not set reason changed Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * rcl wait bug when timer is cancelled Signed-off-by: kevin <[email protected]> * change step of check timer cancelled Signed-off-by: kevin <[email protected]> * fixed rcl_wait when timer cancelled Signed-off-by: kevin <[email protected]> * removed empty line Signed-off-by: ladianchad <[email protected]> Signed-off-by: kevin <[email protected]> Signed-off-by: ladianchad <[email protected]> Co-authored-by: kevin <[email protected]> (cherry picked from commit 4b125b1)
* add error msg in rcl wait Signed-off-by: kevin <[email protected]> * error not set reason changed Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * rcl wait bug when timer is cancelled Signed-off-by: kevin <[email protected]> * change step of check timer cancelled Signed-off-by: kevin <[email protected]> * fixed rcl_wait when timer cancelled Signed-off-by: kevin <[email protected]> * removed empty line Signed-off-by: ladianchad <[email protected]> Signed-off-by: kevin <[email protected]> Signed-off-by: ladianchad <[email protected]> Co-authored-by: kevin <[email protected]> (cherry picked from commit 4b125b1)
✅ Backports have been created
|
* add error msg in rcl wait Signed-off-by: kevin <[email protected]> * error not set reason changed Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * rcl wait bug when timer is cancelled Signed-off-by: kevin <[email protected]> * change step of check timer cancelled Signed-off-by: kevin <[email protected]> * fixed rcl_wait when timer cancelled Signed-off-by: kevin <[email protected]> * removed empty line Signed-off-by: ladianchad <[email protected]> Signed-off-by: kevin <[email protected]> Signed-off-by: ladianchad <[email protected]> Co-authored-by: kevin <[email protected]> (cherry picked from commit 4b125b1)
* add error msg in rcl wait Signed-off-by: kevin <[email protected]> * error not set reason changed Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * rcl wait bug when timer is cancelled Signed-off-by: kevin <[email protected]> * change step of check timer cancelled Signed-off-by: kevin <[email protected]> * fixed rcl_wait when timer cancelled Signed-off-by: kevin <[email protected]> * removed empty line Signed-off-by: ladianchad <[email protected]> Signed-off-by: kevin <[email protected]> Signed-off-by: ladianchad <[email protected]> Co-authored-by: kevin <[email protected]> (cherry picked from commit 4b125b1) Co-authored-by: 정찬희 <[email protected]>
Thank you for fixing this one! :D |
* add error msg in rcl wait Signed-off-by: kevin <[email protected]> * error not set reason changed Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * change error msg Signed-off-by: kevin <[email protected]> * rcl wait bug when timer is cancelled Signed-off-by: kevin <[email protected]> * change step of check timer cancelled Signed-off-by: kevin <[email protected]> * fixed rcl_wait when timer cancelled Signed-off-by: kevin <[email protected]> * removed empty line Signed-off-by: ladianchad <[email protected]> Signed-off-by: kevin <[email protected]> Signed-off-by: ladianchad <[email protected]> Co-authored-by: kevin <[email protected]>
when timer canclled,
rcl_timer_get_time_until_next_call
returnRCL_RET_TIMER_CANCELED
rcl_wait return with "error not set" like below ( we checked
rcl_timer_is_canceled
but timer is atomic, we can miss this)so, I changed check timer canceled by
rcl_timer_get_time_until_next_call
's return value.Would these solutions be appropriate?