Skip to content
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

Add planner name to trajectory info #490

Merged

Conversation

sjahr
Copy link
Contributor

@sjahr sjahr commented Oct 6, 2023

Port of PickNikRobotics#5

Make planner id part of the trajectory info to add information about the planner that created a trajectory

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (0ba9796) 41.67% compared to head (2e4d1d7) 42.87%.
Report is 1 commits behind head on ros2.

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     
Files Coverage Δ
...e/moveit/task_constructor/solvers/cartesian_path.h 100.00% <100.00%> (ø)
...eit/task_constructor/solvers/joint_interpolation.h 100.00% <100.00%> (ø)
...moveit/task_constructor/solvers/pipeline_planner.h 100.00% <100.00%> (ø)
...oveit/task_constructor/solvers/planner_interface.h 100.00% <ø> (ø)
core/src/stages/move_to.cpp 80.29% <100.00%> (+0.29%) ⬆️
core/include/moveit/task_constructor/storage.h 85.11% <91.67%> (-0.76%) ⬇️
core/src/stages/move_relative.cpp 51.60% <50.00%> (-0.01%) ⬇️
core/src/storage.cpp 49.69% <0.00%> (-0.31%) ⬇️
...tion/motion_planning_tasks/src/task_list_model.cpp 22.83% <0.00%> (ø)
core/src/stages/connect.cpp 88.82% <94.29%> (+1.32%) ⬆️
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sjahr sjahr requested review from v4hn and henningkayser October 6, 2023 11:29
@sjahr sjahr merged commit 5c4ef60 into moveit:ros2 Oct 9, 2023
5 checks passed
Comment on lines +278 to +279
[[nodiscard]] inline const InterfaceState* start() const { return start_; }
[[nodiscard]] inline const InterfaceState* end() const { return end_; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Contributor Author

@sjahr sjahr Mar 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

rhaschke pushed a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 9, 2024
rhaschke pushed a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 10, 2024
* Add planner name to trajectory info

* Extend unittest
rhaschke added a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 10, 2024
rhaschke added a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 19, 2024
rhaschke pushed a commit to ubi-agni/moveit_task_constructor that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants