Skip to content

Commit 3f78089

Browse files
committed
fix(husky_ws): Fix ros-humble-kortex-driver package not found issue on arm64
Error message: E: Unable to locate package ros-humble-kortex-driver ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y ros-humble-kortex-driver] failed
1 parent 624246f commit 3f78089

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

husky_ws/docker/script/install-clearpath-robot.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sudo apt-get update
99
# Create custom global workspace
1010
mkdir -p ~/husky_driver_ws/src
1111
cd ~/husky_driver_ws/src
12+
1213
# `clearpath_computer_installer.sh` requires `ros-humble-clearpath-robot`.
1314
# Install from source since package doesn't exist on arm64, error message:
1415
#
@@ -19,27 +20,23 @@ cd ..
1920

2021
# Remove unnecessary dependencies (`micros_ros_agent`, `sevcon_traction`, `umx_driver`, `valence_bms_driver`)
2122
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/.github/workflows/ci.yml#L15-L16
22-
2323
# Temporarily remove `micro_ros_agent` dependency
2424
# Ref: https://github.com/clearpathrobotics/clearpath_robot/pull/19
2525
# Ref: https://github.com/clearpathrobotics/clearpath_robot/pull/22
2626
# I think this package isn't used anyway.
2727
sed -i 's/<exec_depend>micro_ros_agent<\/exec_depend>/<!-- <exec_depend>micro_ros_agent<\/exec_depend> -->/' ~/husky_driver_ws/src/clearpath_robot/clearpath_generator_robot/package.xml
28-
2928
# Temporarily remove `sevcon_traction` dependency
3029
# Ref: https://github.com/clearpathrobotics/clearpath_robot/commit/2ef406f30c074e578db6ea799f5c2714bce1c15d
3130
# This package is only used for W200, so it isn't required for Husky.
3231
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_generator_robot/clearpath_generator_robot/launch/generator.py#L220
3332
# On the other hand, we don't have access to the source code anyway.
3433
# Ref: https://github.com/clearpathrobotics/public-rosdistro/blob/master/humble/distribution.yaml#L262-L279
3534
sed -i 's/<exec_depend>sevcon_traction<\/exec_depend>/<!-- <exec_depend>sevcon_traction<\/exec_depend> -->/' ~/husky_driver_ws/src/clearpath_robot/clearpath_generator_robot/package.xml
36-
3735
# Temporarily remove `umx_driver` dependency
3836
# This package is only used for redshift and chrobotics, so it isn't required for our case.
3937
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/redshift_um7.launch.py#L69
4038
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/chrobotics_um6.launch.py#L69
4139
sed -i 's/<exec_depend>umx_driver<\/exec_depend>/<!-- <exec_depend>umx_driver<\/exec_depend> -->/' ~/husky_driver_ws/src/clearpath_robot/clearpath_sensors/package.xml
42-
4340
# Temporarily remove `valence_bms_driver` dependency
4441
# Ref: https://github.com/clearpathrobotics/clearpath_robot/pull/47
4542
# This type of batteries are only used in W200, so they aren't required for Husky.
@@ -56,6 +53,11 @@ sed -i 's/<exec_depend>valence_bms_driver<\/exec_depend>/<!-- <exec_depend>valen
5653
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/40b1c40a7d229ede7a674cb0fb359fc83c754adb/clearpath_sensors/launch/novatel_smart7.launch.py#L52-L58
5754
sed -i 's/<exec_depend>nmea_navsat_driver<\/exec_depend>/<!-- <exec_depend>nmea_navsat_driver<\/exec_depend> -->/' ~/husky_driver_ws/src/clearpath_robot/clearpath_sensors/package.xml
5855

56+
# Remove missing dependencies (`kortex_driver`)
57+
# This package isn't available on arm64, and we don't use manipulators for now.
58+
# Ref: https://github.com/clearpathrobotics/clearpath_robot/blob/fbfe87214d5565c785b63d7257b5ca33e4482602/clearpath_robot/package.xml#L30
59+
sed -i 's/<exec_depend>kortex_driver<\/exec_depend>/<!-- <exec_depend>kortex_driver<\/exec_depend> -->/' ~/husky_driver_ws/src/clearpath_robot/clearpath_robot/package.xml
60+
5961
# Continue building the workspace
6062
cd ~/husky_driver_ws
6163
rosdep update

0 commit comments

Comments
 (0)