#!/usr/bin/env bash set -euo pipefail ROS_DISTRO="${ROS_DISTRO:-jazzy}" rosdep update --rosdistro "$ROS_DISTRO" >/dev/null 2>&1 || true rosdep keys --from-paths src --ignore-src --rosdistro "$ROS_DISTRO" 2>/dev/null \ | xargs rosdep resolve --rosdistro "$ROS_DISTRO" 2>/dev/null \ | awk '/^#apt/{a=1;next} /^#/{a=0} a' | sort -u > rosdep-packages.txt