FaciRob / ROS 2 source explorer

A real FANUC driver dependency issue

Choose another public issue case

Public issue · Captured source evidence · Reviewed local correction

FANUC's fanuc_moveit_config launch files use fanuc_hardware_interface, but the package manifest does not declare that runtime dependency.

Read upstream issue #50 · Inspect the pinned source

Issue status was open when checked on 18 October 2026. This saved comparison uses commit da5db3f611cdc9dffe687e056c4e79bea584bf5c; it does not track later upstream changes.

  1. Reported by a real user

    A selective build was followed by a launch failure because the hardware-interface package was unavailable.

  2. Detected in unchanged source

    The improved analyzer reports RD101 with the package-share lookup locations.

  3. One manifest correction

    Declare the runtime dependency, then rescan the separate corrected copy.

Before the correction: the source-backed finding

warningRD101confidence 82%

Likely missing package dependency

fanuc_moveit_config references 'fanuc_hardware_interface' but package.xml does not declare it.

Inspect fanuc_moveit_config/launch/fanuc_moveit.launch.py:97

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: fanuc_moveit_config/package.xml, fanuc_moveit_config/launch/fanuc_moveit.launch.py, fanuc_moveit_config/launch/fanuc_moveit_template.launch.py

Patch hint

<exec_depend>fanuc_hardware_interface</exec_depend>
Source evidence
FileLineExtractorSnippet
fanuc_moveit_config/launch/fanuc_moveit.launch.py97python_launch_package_share
get_package_share_directory("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit.launch.py41python_launch_package_share
FindPackageShare("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit.launch.py68python_launch_package_share
FindPackageShare("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit.launch.py172python_launch_package_share
FindPackageShare("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit_template.launch.py101python_launch_package_share
get_package_share_directory("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit_template.launch.py43python_launch_package_share
FindPackageShare("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit_template.launch.py70python_launch_package_share
FindPackageShare("fanuc_hardware_interface")
fanuc_moveit_config/launch/fanuc_moveit_template.launch.py177python_launch_package_share
FindPackageShare("fanuc_hardware_interface")

The reviewed local correction

fanuc_moveit_config/package.xml

+ <exec_depend>fanuc_hardware_interface</exec_depend>

The launch code is unchanged. The original checkout is preserved; the correction is applied to a separate local copy.

After the correction: this finding is absent

Target finding: 1 → 0. Full-repository warnings: 11 → 10. Other diagnostics remain; this does not declare the entire repository healthy.

The package manifest parses successfully, the added edge creates no cycle among the local package dependencies, and unrelated diagnostics are unchanged.

The manifest-derived local dependency closure now includes fanuc_hardware_interface and fanuc_libs, which were absent before. This checks package metadata without running colcon.

Verification boundary: no ROS build, launch, simulation, or physical robot test was run. This corrects and verifies the missing manifest declaration; it does not demonstrate that every symptom of the upstream issue is resolved.

How the analyzer improved during this investigation

The first scan with FaciRob commit 4bb7afb missed this dependency. A generic, import-aware extractor was added for literal package-share lookups, including aliases. Dynamic package names are not guessed. No FANUC package names were added to scanner rules.

This was an issue-guided reproduction, not a blind discovery. The upstream discussion already describes the missing dependency and mentions another analysis tool. No upstream issue comment or pull request has been submitted.

Evidence and reproduction

Case provenanceOriginal detector scanImproved detector: beforeImproved detector: after

Use tools/run_public_case_study.py with a pristine checkout at the pinned SHA to repeat the correction and comparison. Only evidence and a minimal patch are bundled here. Upstream attribution and license text accompany the captured source snippets.