-
Notifications
You must be signed in to change notification settings - Fork 89
Fix RealtimeBox broken API + realtime_box_best_effort.h proper deprecation
#202
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 RealtimeBox broken API + realtime_box_best_effort.h proper deprecation
#202
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #202 +/- ##
==========================================
- Coverage 73.47% 73.42% -0.05%
==========================================
Files 7 7
Lines 411 414 +3
Branches 67 68 +1
==========================================
+ Hits 302 304 +2
Misses 68 68
- Partials 41 42 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
christophfroehlich
left a comment
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.
Thx for the fix.
I can confirm that ros2_controllers builds again now from master. UR driver doesn't but has a useful error message (and my PR fixing it):
/workspaces/ros2_rolling_ws/src/Universal_Robots_ROS2_Driver/ur_controllers/src/ur_configuration_controller.cpp:117:34: error: ‘realtime_tools::RealtimeBoxBestEffort<std::shared_ptr<ur_controllers::VersionInformation> >’ {aka ‘class realtime_tools::RealtimeBoxBase<std::shared_ptr<ur_controllers::VersionInformation>, std::mutex>’} has no member named ‘tryGet’; did you mean ‘try_get’?
117 | return robot_software_version_.tryGet([resp](const std::shared_ptr<VersionInformation> ptr) {
| ^~~~~~
| try_get
Shit, then we need to add a this method and deprecation note. I'll add it tonight. Sorry about that |
|
@christophfroehlich I just pushed the deprecated methods as well. Please let me know, if it works now :) |
christophfroehlich
left a comment
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, ur_controllers build now fine
Thanks a lot for checking. I didn't have time to check it with ur_controllers |
Fixes: #200
@christophfroehlich Thanks for nice summary of the issue.