From 9950f783cd34a614213690a6f5db4844bddeb15d Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Tue, 17 Sep 2024 04:38:56 +0800 Subject: [PATCH] fix(husky_ws): Fix package not found issue by removing the redundant `nmea_navsat_driver` used by J100 Error message: E: Failed to fetch https://packages.clearpathrobotics.com/stable/ubuntu/pool/main/r/ros-humble-nmea-navsat-driver/ros-humble-nmea-navsat-driver_2.0.2-1jammy.20240722.193159_amd64.deb 404 Not Found [IP: 24.114.195.222 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y ros-humble-nmea-navsat-driver] failed --- husky_ws/docker/script/install-clearpath-robot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/husky_ws/docker/script/install-clearpath-robot.sh b/husky_ws/docker/script/install-clearpath-robot.sh index a2dfef21..f94b59d5 100755 --- a/husky_ws/docker/script/install-clearpath-robot.sh +++ b/husky_ws/docker/script/install-clearpath-robot.sh @@ -47,6 +47,15 @@ sed -i 's/umx_driver<\/exec_depend>//' ~/husky_driver_ws/src/clearpath_robot/clearpath_generator_robot/package.xml +# Remove unnecessary dependencies (`nmea_navsat_driver`) +# Ref: https://github.com/husky/husky/blob/1e0b1d14d657f04ec3a86e73d6676a2cf7af6f79/husky_bringup/package.xml#L25-L26 +# This type of GPS are only used for J100, so they aren't required for Husky. +# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_generator_robot/clearpath_generator_robot/launch/generator.py#L100-L113 +# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/garmin_18x.launch.py#L52-L58 +# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/novatel_smart6.launch.py#L52-L58 +# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/novatel_smart7.launch.py#L52-L58 +sed -i 's/nmea_navsat_driver<\/exec_depend>//' ~/husky_driver_ws/src/clearpath_robot/clearpath_sensors/package.xml + # Continue building the workspace cd ~/husky_driver_ws rosdep update