Repository navigation
Description
Description
Apply and identity transfer succeed, but the object collides with its own link and planning fails; explicit link succeeds.
This is a contract candidate. The message documentation says link_name is considered by default when touch_links is empty, while the direct ApplyPlanningScene path behaves differently from an explicit touch link.
ROS Distro
Jazzy
OS and version
Ubuntu 24.04.4 LTS, x86_64, Linux 6.17.0-1032-oem
Source or binary build?
Source
Source version
Commit 002f40e; runtime library 2.12.4
Which RMW are you using?
FastRTPS (rmw_fastrtps_cpp)
Steps to Reproduce
- Build the affected package from the official repository at the tested revision:
git clone https://github.com/moveit/moveit2.git
cd moveit2
git checkout 002f40e58ebf5322c89468f5049867791e5f67fd
source /opt/ros/jazzy/setup.bash
rosdep install --from-paths . --ignore-src -r -y
colcon build --packages-up-to moveit_core --cmake-args -DBUILD_TESTING=ON
source install/setup.bash- Use the existing PlanningScene fixture in
moveit_core/planning_scene/test/test_planning_scene.cpp. Add an attached collision object whoselink_nameisslider, whose geometry overlaps that link, and whosetouch_linksarray is empty. Apply it through the same direct planning-scene message path used byApplyPlanningScene. - Verify that applying the scene and transferring the object identity succeed, then query self-collision for the resulting state.
- Repeat with the only change
touch_links={"slider"}. - The empty-array case reports collision with its own
sliderlink and planning returns code 99999 with no points. The explicit-link control is collision-free and planning succeeds with code 1.
Run the focused moveit_core planning-scene test target after adding the two arms.
Expected behavior
The message contract says link_name is considered by default when touch_links is empty.
Actual behavior
Apply and identity transfer succeed, but the object collides with its own link and planning fails; explicit link succeeds.
Backtrace or Console output
No crash occurs. Empty touch_links: planning code 99999, 0 trajectory points, 3/3 runs. Explicit touch_links containing slider: success code 1, 101 trajectory points, 3/3 controls.
Additional information
- Source location: moveit_core/planning_scene/src/planning_scene.cpp
- Reproduced: 3/3 variants; 3/3 controls
- Assessment: reproduced contract candidate
- Why ordinary tests miss this: Apply success and object identity both look healthy; validity/planning reveal the effect.
- Duplicate search: No exact issue located; high-level attachObject already fills link_name. Checked 2026-09-28. This is a directed search, not a claim of first discovery.
Activity