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

Copy planning scene predicates in the copy constructor #2858

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

galou
Copy link
Contributor

@galou galou commented May 29, 2024

Description

The child planning scene should behave as its parent, so the state- and motion- feasibility predicates should be copied as well.

The copy of the collision update callback is treated in a separate commit because I'm not quite sure how to do it properly. I guess that the cloned planning scene should not call the collision update callback to avoid confusion.

Often in the planning scene implementation, the child planning scene uses members of its parent when it doesn't have its own but this is not the case for the predicates so I did copy them.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@galou galou force-pushed the copy_planning_scene_predicates branch from c3d6351 to b183b1a Compare May 30, 2024 08:49
@henningkayser
Copy link
Member

@galou thank you! Can you update your branch to main? CI should succeed now.

Gaël Écorchard added 2 commits June 18, 2024 08:39
The child planning scene should behave as its parent, so the state- and
motion- feasibility predicates should be copied as well.

The copy of the collision update callback will be treated in a separate
commit because I'm not quite sure how to do it properly.

Signed-off-by: Gaël Écorchard <[email protected]>
…gScene

The collision update callback (current_world_object_update_callback_) is
copied in the copy constructor of PlanningScene to ensure that the child
planning scene behaves the same way as its parent.
It is reset in `decoupleParent()` to avoid calling the callback on a
cloned planning scene, which would bring confusion.

Signed-off-by: Gaël Écorchard <[email protected]>
@galou galou force-pushed the copy_planning_scene_predicates branch from b183b1a to 26440a9 Compare June 18, 2024 07:51
@sjahr sjahr requested review from henningkayser and rhaschke June 18, 2024 15:18
@sjahr sjahr merged commit bc07edf into moveit:main Jul 22, 2024
9 of 11 checks passed
@galou galou deleted the copy_planning_scene_predicates branch August 1, 2024 06:49
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