Skip to content

Replace shared_ptr unique checks - #3793

Merged
rhaschke merged 1 commit into
moveit:mainfrom
Tobias-Fischer:codex/robostack-moveit-shared-ptr-use-count
Jul 20, 2026
Merged

Replace shared_ptr unique checks#3793
rhaschke merged 1 commit into
moveit:mainfrom
Tobias-Fischer:codex/robostack-moveit-shared-ptr-use-count

Conversation

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: focused portions of patch/ros-rolling-moveit-core.patch, patch/ros-rolling-moveit-planners-ompl.patch, and patch/ros-rolling-moveit-ros-planning.patch, authored by Daisuke Nishimatsu.

std::shared_ptr::unique() was removed in C++20. This replaces the remaining source-level ownership checks with equivalent use_count() comparisons while preserving the existing logic.

This intentionally leaves moveit_ros/robot_interaction untouched because that file is already covered by #3792.

This upstreams the focused std::shared_ptr::unique() portions of RoboStack downstream patches `patch/ros-rolling-moveit-core.patch`, `patch/ros-rolling-moveit-planners-ompl.patch`, and `patch/ros-rolling-moveit-ros-planning.patch`.

std::shared_ptr::unique() is removed in C++20. Use use_count() comparisons instead while preserving the existing ownership checks. This intentionally does not touch moveit_ros/robot_interaction because that file is already covered by moveit#3792.
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Contributor Author

FYI @wep21 @traversaro, opened from the RoboStack patch tracking effort in RoboStack/robostack.github.io#16.

@mergify

mergify Bot commented Jul 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@rhaschke
rhaschke merged commit f737f20 into moveit:main Jul 20, 2026
11 of 12 checks passed
@github-project-automation github-project-automation Bot moved this to ✅ Done in MoveIt Jul 20, 2026
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.

2 participants