- Switch base image / repos file / rosdep distro from jazzy to lyrical (ros:lyrical is built on Ubuntu resolute/26.04). - Vendor transport_drivers (serial_driver/io_context/udp_driver) since lyrical apt packages for them are not yet published; patch removes the now-gone ament_target_dependencies() macro. - Fix ament_target_dependencies() removal across agv_pro_base, agv_pro_hardware, agv_pro_rviz_plugins, and slam_gmapping by switching to target_link_libraries() with namespaced imported targets (or raw *_LIBRARIES/*_INCLUDE_DIRS variables for packages with no modern target: serial_driver, ASIO). - Migrate agv_pro_rviz_plugins from Qt5 to Qt6. - Fix Boost 1.90 dropping libboost-system-dev: use header-only Boost::boost instead of a system component. - Rename boost::asio::io_service -> io_context and mutable_buffers_1 -> mutable_buffer (Asio API removal) in agv_pro_hardware and agv_pro_base. - Update tf2/message_filters includes from removed .h shims to .hpp, and fix message_filters::Subscriber's QoS constructor signature. - Regenerate rosdep-packages.txt for lyrical; skip cartographer_ros/ orbbec_camera in rosdep install (exec_depend-only, not yet published as ros-lyrical-* apt packages -- tracked in TODO.md). - Lidar packages (fast_lio, livox_*, lslidar_*, point_lio, unitree_lidar_*) are deferred; their patches are present but not verified yet under lyrical. Verified: full docker build succeeds with colcon build reporting all 23 non-lidar/transport packages finished, 0 failed.
35 lines
1.4 KiB
Bash
Executable File
35 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -u
|
|
|
|
PATCH_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT_DIR="$(dirname "$PATCH_DIR")"
|
|
PATCH_DIR="$ROOT_DIR/patches"
|
|
|
|
apply_patch_once() {
|
|
local target_dir="$1"
|
|
local patch_file="$2"
|
|
|
|
if [[ ! -d "$target_dir/.git" ]]; then
|
|
echo "[FAIL] target repo not found: $target_dir" >&2
|
|
return 2
|
|
fi
|
|
|
|
if [[ ! -f "$patch_file" ]]; then
|
|
echo "[FAIL] patch not found: $patch_file" >&2
|
|
return 2
|
|
fi
|
|
|
|
git -C "$target_dir" apply --check "$patch_file" >/dev/null 2>&1 \
|
|
&& git -C "$target_dir" apply "$patch_file" >/dev/null 2>&1 \
|
|
|| git -C "$target_dir" apply --reverse --check "$patch_file" >/dev/null 2>&1
|
|
}
|
|
|
|
apply_patch_once "$ROOT_DIR/src/upstream/FAST_LIO" "$PATCH_DIR/fast_lio.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/livox_sdk" "$PATCH_DIR/livox_sdk.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/livox_ros_driver2" "$PATCH_DIR/livox_ros_driver2.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/Lslidar_ROS2_driver" "$PATCH_DIR/lslidar_ros2_driver.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/point_lio_ros2" "$PATCH_DIR/point_lio_ros2.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/slam_gmapping" "$PATCH_DIR/slam_gmapping.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/unilidar_sdk2" "$PATCH_DIR/unilidar_sdk2.patch"
|
|
apply_patch_once "$ROOT_DIR/src/upstream/transport_drivers" "$PATCH_DIR/transport_drivers.patch"
|