-
Notifications
You must be signed in to change notification settings - Fork 502
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
Do not allow traj execution from PlanningComponent #1835
Do not allow traj execution from PlanningComponent #1835
Conversation
Codecov ReportBase: 50.45% // Head: 50.42% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1835 +/- ##
==========================================
- Coverage 50.45% 50.42% -0.03%
==========================================
Files 374 374
Lines 31335 31335
==========================================
- Hits 15807 15797 -10
- Misses 15528 15538 +10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
But, one does call the other? The intention was to make it easier to forward the last plan solution for execution, similar to how MGI is doing it. I agree though, that we should keep our API clean and that removing it would improve separation of concerns. |
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 like this change too 👍
The API diff looks something like this, I guess:
-planning_component.plan();
+auto motion_plan_response = planning_component.plan();
-planning_component.execute();
+planning_component(group_name, motion_plan_reponse.trajectory)
I think the new version is more readable.
Wouldn't it be possible to drop the group name argument for MoveItCpp::execute(...) as well, since the robot_trajectory::RobotTrajectoryPtr in MotionPlanResponse contains a group name?
Can you first deprecate this function before removing it without notice? |
cadaf38
to
98653cd
Compare
Ooh, I like that idea 👍 |
8cd1bde
to
2069ef0
Compare
This pull request is in conflict. Could you fix it @AndyZe? |
2069ef0
to
e0870e2
Compare
df69c56
to
17e2757
Compare
I'll make a |
@henningkayser @AndyZe Are we ready to merge this? |
Yeah, it's ready as far as I know. |
Merge with moveit/moveit2_tutorials#563
MoveItCpp and PlanningComponent have very similar
execute()
functions.One does not call the other.Here, I advocate for deleting the PlanningComponent version because I don't think something focused on planning should handle execution. If you like this, there are some small updates to make in moveit_tutorials but that is the only effect I foresee.If you do NOT like this PR, then can we flip it to delete the MoveItCpp version of
execute()
? AFAIK it is not used anywhere