FaciRob / ROS 2 source explorer

A real MoveIt Resources RViz launch issue

Choose another public issue case

Public issue · Existing detector · Reviewed local correction

The Panda RViz launcher looks for configuration files in moveit2_tutorials. Its own package already ships full and empty RViz configurations.

Read upstream issue #219 · Inspect the pinned source

Issue status was open when checked on 18 October 2026. This saved comparison uses the ros2 branch snapshot e1657c128ea61621777a041e3783c9c7c93db4ca; it does not track later upstream changes.

  1. Reported launch failure

    A user reports PackageNotFoundError for moveit2_tutorials when starting moveit_rviz.launch.py.

  2. Detected without a scanner change

    The existing RD101 check identifies the external package-share lookup.

  3. Use existing local assets

    Point the launcher to its own package and its two existing RViz filenames.

Before the correction: the source-backed finding

warningRD101confidence 82%

Likely missing package dependency

moveit_resources_panda_moveit_config references 'moveit2_tutorials' but package.xml does not declare it.

Inspect panda_moveit_config/launch/moveit_rviz.launch.py:50

Recommended repair: Declare the referenced ROS package dependency or suppress the finding if it is intentionally external.

  1. Confirm the reference is required at build or runtime.
  2. Add the dependency to package.xml and run rosdep.

Commands to verify

rosdep check --from-paths src --ignore-src

Suggested files: panda_moveit_config/package.xml, panda_moveit_config/launch/moveit_rviz.launch.py

Patch hint

<exec_depend>moveit2_tutorials</exec_depend>
Source evidence
FileLineExtractorSnippet
panda_moveit_config/launch/moveit_rviz.launch.py50python_launch_package_share
get_package_share_directory("moveit2_tutorials")

The reviewed local correction

panda_moveit_config/launch/moveit_rviz.launch.py

- get_package_share_directory("moveit2_tutorials")
+ get_package_share_directory("moveit_resources_panda_moveit_config")
- "panda_moveit_config_demo.rviz"
+ "moveit.rviz"
- "panda_moveit_config_demo_empty.rviz"
+ "moveit_empty.rviz"

The analyzer's generic hint suggests declaring the dependency. Source review instead finds the full and empty RViz files already in this package. This correction removes the external lookup and changes three lines; it does not add a dependency or change the manifest.

This is a reviewed local alternative, not an automatic repair. The pristine checkout is preserved and the correction is applied to a separate copy.

After the correction: the external lookup finding is absent

Target finding: 1 → 0. Full-repository warnings: 2 → 1. Other diagnostics remain.

The corrected Python parses successfully. Both local RViz files exist, and the existing CMake rule installs their launch directory. Package dependencies and install rules are unchanged; every unrelated diagnostic is identical.

The full and tutorial modes still select separate full and empty configurations. These are the package's own presets; they may differ from the tutorial presets previously referenced. Visual behavior has not been compared in RViz.

Verification boundary: no ROS build, launch, simulation, or physical robot test was run. The static checks verify the removed external lookup and existing local assets; they do not establish that every cause of the reported launch failure is resolved.

What this case adds to the demo

The existing analyzer at commit c89b4e3 already detects this issue. No detector rule was added for this repository. This is an issue-guided reproduction, not blind discovery. Unlike the FANUC correction, source review removes an unnecessary external lookup rather than declaring a new dependency. No upstream comment or pull request has been submitted.

Evidence and reproduction

Case provenanceOriginal detector scanBefore correctionAfter correction

Repeat the comparison with tools/run_moveit_case_study.py and a pristine checkout at the pinned SHA. Reproduction instructions and upstream attribution accompany the evidence.