Skip to content

CheckStartStateCollision diagnostics use the current state instead of the request start state #3900

Open

Description

@Yuhx141

Description

The planning pipeline detects the error, but the diagnostic attached to it does not describe the data that was checked.

ROS Distro

Jazzy

OS and version

Ubuntu 24.04

Source or binary build?

Binary

If binary, which release version?

MoveIt 2.12.4

Which RMW are you using?

FastRTPS

Steps to Reproduce

  1. Build the affected package from the official repository at the tested revision:
git clone https://github.com/moveit/moveit2.git
cd moveit2
git checkout 1ade0e9dcf50dbbbc3a984b995c786cf12736235
source /opt/ros/jazzy/setup.bash
rosdep install --from-paths . --ignore-src -r -y
colcon build --packages-up-to moveit_ros_planning --cmake-args -DBUILD_TESTING=ON
source install/setup.bash
  1. Use moveit_ros/planning/planning_pipeline/test/planning_pipeline_tests.cpp with CheckStartStateCollision. Place a box named p3_start_box so the request start state at x=0 collides with slider, while the scene's current state at x=0.8 is collision-free.
  2. Confirm those two validity checks independently, then submit the request with the colliding start state.
  3. The adapter rejects the request, but its diagnostic reports 0 contact(s) detected. Querying contacts with the request start state reports p3_start_box - slider.
  4. Run the ordinary valid-planning case as a control.

This reproduced in 3/3 runs.

Expected behavior

When a supplied request start state is in collision, its diagnostic contacts should be computed from that same state.

Actual behavior

The current scene state at x=0.8 is independently valid and the request start at x=0 is invalid, but the stage reports 0 contact(s) detected. Passing the request start state to the contact query reports the expected p3_start_box - slider contact. This reproduced 3/3.

Backtrace or Console output

The stage result is described above; the service remained responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions