-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fix invalid timer handle exception #474
Fix invalid timer handle exception #474
Conversation
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.
Looks reasonable to me. Is it possible to add a test case that demonstrates this?
How should I add a test case? |
Can you write a code snippet that uses the |
Thank you for the feedback. I will try to write a test case and push it later. |
59d746e
to
46bcb33
Compare
@z80020100 there are linter errors in the Rpr job, can you address them please? |
@aprotyas Sure, I will fix them. |
5d3f011
to
c85bc8b
Compare
status: works for me 👍 |
Will this be merged into humble? @aprotyas I'm sure other people will also face this issue (we did and we independently identified the same bug). If this is good, then we should merge this into the code base or at least mark it as an issue so that others can find this. |
@swarajpeppermint thanks for flagging this. Since I’m not a maintainer I can’t actually merge the code, but I’m tagging @clalancette who can hopefully get this PR across the finish line |
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.
I'm sorry for the very long delay here. In short, after looking at this more closely, I agree with this change. Thank you so much for adding the test case as well, that is very helpful.
I'm going to approve, rebase it onto the latest, and go ahead and run CI on it.
c85bc8b
to
b3326c2
Compare
fantastic!, can we backport to iron and humble? |
https://github.com/Mergifyio backport iron humble |
✅ Backports have been created
|
* Add class MockCreateTimerROS for testing * Add a test case to reproduce invalid timer handle exception * Fix invalid timer handle exception caused by removing handle repeatedly (cherry picked from commit 2eaab25)
* Add class MockCreateTimerROS for testing * Add a test case to reproduce invalid timer handle exception * Fix invalid timer handle exception caused by removing handle repeatedly (cherry picked from commit 2eaab25)
* Add class MockCreateTimerROS for testing * Add a test case to reproduce invalid timer handle exception * Fix invalid timer handle exception caused by removing handle repeatedly (cherry picked from commit 2eaab25) Co-authored-by: Cliff Wu <z800201002005@gmail.com>
* Add class MockCreateTimerROS for testing * Add a test case to reproduce invalid timer handle exception * Fix invalid timer handle exception caused by removing handle repeatedly (cherry picked from commit 2eaab25) Co-authored-by: Cliff Wu <z800201002005@gmail.com>
This issue was independently reported to Nav2, ROS answers and Robotics Stack Exchange and I couldn't find a fix for a long time. Thanks for this fix, it was really a frequent problem for our production robots.
In retrospect, this would have probably been a good idea to help find this issue/PR more easily |
* Add class MockCreateTimerROS for testing * Add a test case to reproduce invalid timer handle exception * Fix invalid timer handle exception caused by removing handle repeatedly (cherry picked from commit 2eaab25) Co-authored-by: Cliff Wu <z800201002005@gmail.com>
@z80020100 @swarajpeppermint @clalancette Can this be backported to Galactic or Foxy ? |
@ahcorde these are the only LTS version on 20.04, there is still a lot of community and would be helpful for the community. Can this be considered still ? |
No, sorry. We have no way to deliver fixes for those distributions anymore. |
transform_tolerance
forlocal_costmap
andglobal_costmap
.geometry2/tf2_ros/src/create_timer_ros.cpp
Line 93 in 16562ce
timer_handle
only can be removed when it can be found intimer_to_request_map_