This should be a refactor - using the ros_packages_only check from within `get_depends` instead of implementing it again.