Skip to content

stopWorldGeometryMonitor() leaves the PlanningSceneWorld subscription active #3897

Open

Description

@Yuhx141

Description

The implementation resets the two independently-created subscribers with if / else if.

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_scene_monitor/test/planning_scene_monitor_test.cpp. Start world geometry monitoring with both the CollisionObject and PlanningSceneWorld topics enabled, and publish one message on each to establish that both subscriptions are active.
  2. Call stopWorldGeometryMonitor() once. Publish a new CollisionObject and then a new PlanningSceneWorld.
  3. The CollisionObject is ignored, but the PlanningSceneWorld message still replaces the monitored world. Calling stopWorldGeometryMonitor() a second time makes that topic silent as well.

The single-stop arm failed in 3/3 fresh processes; the double-stop control passed in 3/3.

Expected behavior

PlanningSceneMonitor::stopWorldGeometryMonitor() removes both world-geometry subscriptions after one call.

Actual behavior

After one call, CollisionObject is silent but PlanningSceneWorld is still subscribed and replaces the scene. Calling stop a second time removes it. The single-stop arm failed 3/3 and the double-stop control passed 3/3.

Backtrace or Console output

No execution error occurred in the saved runs.

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