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

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 <[email protected]>
@Tobias-Fischer

Copy link
Copy Markdown
Contributor Author

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

@mergify

mergify Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@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
@130s 130s added the backport-jazzy Mergify label that triggers a PR backport to Jazzy label Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-jazzy Mergify label that triggers a PR backport to Jazzy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants