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.
- Reported by a real user
A selective build was followed by a launch failure because the hardware-interface package was unavailable.
- Detected in unchanged source
The improved analyzer reports RD101 with the package-share lookup locations.
- 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.
- Confirm the reference is required at build or runtime.
- 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
| File | Line | Extractor | Snippet |
|---|
| fanuc_moveit_config/launch/fanuc_moveit.launch.py | 97 | python_launch_package_share | get_package_share_directory("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit.launch.py | 41 | python_launch_package_share | FindPackageShare("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit.launch.py | 68 | python_launch_package_share | FindPackageShare("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit.launch.py | 172 | python_launch_package_share | FindPackageShare("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit_template.launch.py | 101 | python_launch_package_share | get_package_share_directory("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit_template.launch.py | 43 | python_launch_package_share | FindPackageShare("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit_template.launch.py | 70 | python_launch_package_share | FindPackageShare("fanuc_hardware_interface")
|
| fanuc_moveit_config/launch/fanuc_moveit_template.launch.py | 177 | python_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.