-
Notifications
You must be signed in to change notification settings - Fork 334
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 WaitSet issue in tests #1206
Conversation
This approach looks very good! Thank you for taking the time! |
@bmagyar @destogl @christophfroehlich Apart from this failing test
|
I reported this already in #1192 ;) I can have a look today to fix it 👀 @fmauch |
Awesome. Thank you so much @christophfroehlich |
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.
The new code looks quite simple 👍 And if it works -> great! Thanks for your efforts!
executor.add_node(test_subscription_node.get_node_base_interface()); | ||
received_msg.reset(); | ||
ASSERT_FALSE(received_msg); |
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.
executor.add_node(test_subscription_node.get_node_base_interface()); | |
received_msg.reset(); | |
ASSERT_FALSE(received_msg); | |
received_msg.reset(); | |
ASSERT_FALSE(received_msg); | |
executor.add_node(test_subscription_node.get_node_base_interface()); |
I'm not sure I'm understanding this part completely but I think adding the node before resetting the local var is problematic. Why do we even need to reset it and then check that it's still reset?
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.
It shouldn't be a problem unless you spin in between. if you spin yes, then it would reset and be a problem. I was just resetting and added assert to be sure nothing much
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.
Since it is a local variable... does it matter at all if we not reset it?
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.
Nope, it doesn't matter. I can remove it
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.
Thanks. Done
ackermann_steering_controller/test/test_ackermann_steering_controller.hpp
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1206 +/- ##
===========================================
+ Coverage 71.86% 86.58% +14.71%
===========================================
Files 41 95 +54
Lines 3650 8585 +4935
Branches 1794 718 -1076
===========================================
+ Hits 2623 7433 +4810
- Misses 707 883 +176
+ Partials 320 269 -51
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
All good, thank you!
(cherry picked from commit 2674f6d) # Conflicts: # joint_trajectory_controller/test/test_trajectory_controller.cpp # joint_trajectory_controller/test/test_trajectory_controller_utils.hpp
(cherry picked from commit 2674f6d) # Conflicts: # joint_trajectory_controller/test/test_trajectory_controller.cpp # joint_trajectory_controller/test/test_trajectory_controller_utils.hpp
This PR aims to fix the WaitSet issue with the command subscription in the tests