Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## ros2 #490 +/- ##
==========================================
+ Coverage 41.67% 42.87% +1.20%
==========================================
Files 79 82 +3
Lines 7939 7974 +35
==========================================
+ Hits 3308 3418 +110
+ Misses 4631 4556 -75
☔ View full report in Codecov by Sentry. |
| [[nodiscard]] inline const InterfaceState* start() const { return start_; } | ||
| [[nodiscard]] inline const InterfaceState* end() const { return end_; } |
There was a problem hiding this comment.
@sjahr: Why should we want the nodiscard flag here? Yes, it's stupid to not use the result of a getter function. But there is no problem in discarding the return value.
Apart from that, this change is completely unrelated to this PR.
There was a problem hiding this comment.
My intention with these changes was to let the compiler prevent people from doing something stupid. We've started a while ago in moveit2 to improve the code quality by following the best practices recommendations of Jason Turner and using [nodiscard] liberally was one of his suggestions in the book. If someone wants to discard the return value of the getter function intentionally they can use std::ignore.
I've added that as a small improvement here and did not see much need for opening a separate PR for that. If the reviewers would have requested it, I might have done that but I think for these small and non-critical changes it is easier to just clean them up along the way working on something bigger.
* Add planner name to trajectory info * Extend unittest
Port of PickNikRobotics#5
Make planner id part of the trajectory info to add information about the planner that created a trajectory