Migrate to ROS2 Lyrical for all non-lidar packages

- 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.
This commit is contained in:
Matt Spencer committed 2026-10-19 17:48:21 +01:00
1 parent bbcb753c94
commit 46f7cbb8b5
27 files changed
+362 -137

No files matched your search

+3
View File
@@ -27,5 +27,8 @@ apply_patch_once() {
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"
+3
View File
@@ -47,3 +47,6 @@ index be3040b..3176847 100644
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
message("Current CPU archtecture: ${CMAKE_SYSTEM_PROCESSOR}")
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
+3
View File
@@ -87,3 +87,6 @@ index 96f5762..c66785b 100644
<export>
<build_type>ament_cmake</build_type>
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
+3
View File
@@ -63,3 +63,6 @@ index 05f84c5..4fb6f31 100644
+ament_export_include_directories(include)
+ament_export_libraries(livox_lidar_sdk_shared)
+ament_package()
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
+3
View File
@@ -0,0 +1,3 @@
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
+3
View File
@@ -0,0 +1,3 @@
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
+52 -3
View File
@@ -1,8 +1,38 @@
diff --git a/slam_gmapping/CMakeLists.txt b/slam_gmapping/CMakeLists.txt
index d0115c0..40d9df2 100644
--- a/slam_gmapping/CMakeLists.txt
+++ b/slam_gmapping/CMakeLists.txt
@@ -44,15 +44,16 @@ include_directories(include)
add_executable(slam_gmapping src/slam_gmapping.cpp)
-ament_target_dependencies(slam_gmapping
- rclcpp
- tf2
- tf2_ros
- message_filters
- sensor_msgs
- nav_msgs
- tf2_geometry_msgs
- openslam_gmapping)
+target_include_directories(slam_gmapping PUBLIC ${openslam_gmapping_INCLUDE_DIRS})
+target_link_libraries(slam_gmapping
+ rclcpp::rclcpp
+ tf2::tf2
+ tf2_ros::tf2_ros
+ message_filters::message_filters
+ sensor_msgs::sensor_msgs
+ nav_msgs::nav_msgs
+ tf2_geometry_msgs::tf2_geometry_msgs
+ ${openslam_gmapping_LIBRARIES})
install(TARGETS slam_gmapping
DESTINATION lib/${PROJECT_NAME})
diff --git a/slam_gmapping/include/slam_gmapping/slam_gmapping.h b/slam_gmapping/include/slam_gmapping/slam_gmapping.h
index 1ee2e5c..204ca85 100644
index 1ee2e5c..b43f738 100644
--- a/slam_gmapping/include/slam_gmapping/slam_gmapping.h
+++ b/slam_gmapping/include/slam_gmapping/slam_gmapping.h
@@ -35,7 +35,7 @@
@@ -35,11 +35,11 @@
#include "geometry_msgs/msg/pose.hpp"
#include "geometry_msgs/msg/pose_stamped.hpp"
#include "geometry_msgs/msg/transform_stamped.hpp"
@@ -10,4 +40,23 @@ index 1ee2e5c..204ca85 100644
+#include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
#include "tf2_ros/transform_listener.h"
#include "tf2_ros/transform_broadcaster.h"
#include "tf2/utils.h"
-#include "tf2/utils.h"
-#include "message_filters/subscriber.h"
+#include "tf2/utils.hpp"
+#include "message_filters/subscriber.hpp"
#include "tf2_ros/message_filter.h"
#include "gmapping/gridfastslam/gridslamprocessor.h"
diff --git a/slam_gmapping/src/slam_gmapping.cpp b/slam_gmapping/src/slam_gmapping.cpp
index 8500f8e..2b47c76 100644
--- a/slam_gmapping/src/slam_gmapping.cpp
+++ b/slam_gmapping/src/slam_gmapping.cpp
@@ -102,7 +102,7 @@ void SlamGmapping::startLiveSlam() {
sst_ = this->create_publisher<nav_msgs::msg::OccupancyGrid>("map", rclcpp::SystemDefaultsQoS());
sstm_ = this->create_publisher<nav_msgs::msg::MapMetaData>("map_metadata", rclcpp::SystemDefaultsQoS());
scan_filter_sub_ = std::make_shared<message_filters::Subscriber<sensor_msgs::msg::LaserScan>>
- (node_, "scan", rclcpp::SensorDataQoS().get_rmw_qos_profile());
+ (node_, "scan", rclcpp::SensorDataQoS());
// sub_ = this->create_subscription<sensor_msgs::msg::LaserScan>(
// "scan", rclcpp::SensorDataQoS(),
// std::bind(&SlamGmapping::laserCallback, this, std::placeholders::_1));
+120
View File
@@ -0,0 +1,120 @@
diff --git a/io_context/CMakeLists.txt b/io_context/CMakeLists.txt
index 3c04653..4f7226f 100644
--- a/io_context/CMakeLists.txt
+++ b/io_context/CMakeLists.txt
@@ -38,7 +38,8 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
src/io_context.cpp
src/msg_converters/std_msgs.cpp
)
-ament_target_dependencies(${PROJECT_NAME} "ASIO")
+target_include_directories(${PROJECT_NAME} PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(${PROJECT_NAME} PUBLIC ${ASIO_DEFINITIONS})
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
@@ -48,7 +49,9 @@ if(BUILD_TESTING)
ament_add_gtest(${TEST_UDP_DRIVER_EXE}
test/${name}.cpp)
- ament_target_dependencies(${TEST_UDP_DRIVER_EXE} std_msgs udp_msgs "ASIO")
+ target_link_libraries(${TEST_UDP_DRIVER_EXE} std_msgs::std_msgs__rosidl_typesupport_cpp udp_msgs::udp_msgs__rosidl_typesupport_cpp)
+ target_include_directories(${TEST_UDP_DRIVER_EXE} PRIVATE ${ASIO_INCLUDE_DIRS})
+ target_compile_definitions(${TEST_UDP_DRIVER_EXE} PRIVATE ${ASIO_DEFINITIONS})
target_include_directories(${TEST_UDP_DRIVER_EXE} PRIVATE include)
target_link_libraries(${TEST_UDP_DRIVER_EXE} ${PROJECT_NAME})
diff --git a/serial_driver/CMakeLists.txt b/serial_driver/CMakeLists.txt
index 9055ace..2d4d1bd 100644
--- a/serial_driver/CMakeLists.txt
+++ b/serial_driver/CMakeLists.txt
@@ -38,7 +38,8 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
src/serial_driver.cpp
)
-ament_target_dependencies(${PROJECT_NAME} "ASIO")
+target_include_directories(${PROJECT_NAME} PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(${PROJECT_NAME} PUBLIC ${ASIO_DEFINITIONS})
ament_auto_add_library(${PROJECT_NAME}_nodes SHARED
src/serial_bridge_node.cpp
@@ -50,7 +51,8 @@ rclcpp_components_register_node(${PROJECT_NAME}_nodes
)
target_link_libraries(${PROJECT_NAME}_nodes ${PROJECT_NAME})
-ament_target_dependencies(${PROJECT_NAME}_nodes "ASIO")
+target_include_directories(${PROJECT_NAME}_nodes PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(${PROJECT_NAME}_nodes PUBLIC ${ASIO_DEFINITIONS})
if(BUILD_TESTING)
find_package(ament_lint_auto)
@@ -68,12 +70,9 @@ if(BUILD_TESTING)
ament_add_gtest(${TEST_SERIAL_DRIVER_EXE}
test/${name}.cpp
)
- ament_target_dependencies(${TEST_SERIAL_DRIVER_EXE}
- rclcpp
- lifecycle_msgs
- ASIO
- )
- target_include_directories(${TEST_SERIAL_DRIVER_EXE} PRIVATE include)
+ target_link_libraries(${TEST_SERIAL_DRIVER_EXE} rclcpp::rclcpp lifecycle_msgs::lifecycle_msgs__rosidl_typesupport_cpp)
+ target_include_directories(${TEST_SERIAL_DRIVER_EXE} PRIVATE include ${ASIO_INCLUDE_DIRS})
+ target_compile_definitions(${TEST_SERIAL_DRIVER_EXE} PRIVATE ${ASIO_DEFINITIONS})
target_link_libraries(${TEST_SERIAL_DRIVER_EXE} ${PROJECT_NAME} ${PROJECT_NAME_NODES})
endforeach()
endif()
diff --git a/udp_driver/CMakeLists.txt b/udp_driver/CMakeLists.txt
index f78d262..cf8abd8 100644
--- a/udp_driver/CMakeLists.txt
+++ b/udp_driver/CMakeLists.txt
@@ -38,13 +38,15 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
src/udp_socket.cpp
src/udp_driver.cpp
)
-ament_target_dependencies(${PROJECT_NAME} "ASIO")
+target_include_directories(${PROJECT_NAME} PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(${PROJECT_NAME} PUBLIC ${ASIO_DEFINITIONS})
ament_auto_add_library(${PROJECT_NAME}_nodes SHARED
src/udp_receiver_node.cpp
src/udp_sender_node.cpp
)
-ament_target_dependencies(${PROJECT_NAME}_nodes "ASIO")
+target_include_directories(${PROJECT_NAME}_nodes PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(${PROJECT_NAME}_nodes PUBLIC ${ASIO_DEFINITIONS})
target_link_libraries(${PROJECT_NAME}_nodes ${PROJECT_NAME})
rclcpp_components_register_node(${PROJECT_NAME}_nodes
@@ -62,7 +64,8 @@ ament_auto_add_executable(udp_bridge_node_exe
)
target_link_libraries(udp_bridge_node_exe ${PROJECT_NAME} ${PROJECT_NAME}_nodes)
-ament_target_dependencies(udp_bridge_node_exe ASIO)
+target_include_directories(udp_bridge_node_exe PUBLIC ${ASIO_INCLUDE_DIRS})
+target_compile_definitions(udp_bridge_node_exe PUBLIC ${ASIO_DEFINITIONS})
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
@@ -80,14 +83,14 @@ if(BUILD_TESTING)
ament_add_gtest(${TEST_UDP_DRIVER_EXE}
test/${name}.cpp)
- ament_target_dependencies(${TEST_UDP_DRIVER_EXE}
- rclcpp
- std_msgs
- udp_msgs
- lifecycle_msgs
- ASIO)
-
- target_include_directories(${TEST_UDP_DRIVER_EXE} PRIVATE include)
+ target_link_libraries(${TEST_UDP_DRIVER_EXE}
+ rclcpp::rclcpp
+ std_msgs::std_msgs__rosidl_typesupport_cpp
+ udp_msgs::udp_msgs__rosidl_typesupport_cpp
+ lifecycle_msgs::lifecycle_msgs__rosidl_typesupport_cpp)
+
+ target_include_directories(${TEST_UDP_DRIVER_EXE} PRIVATE include ${ASIO_INCLUDE_DIRS})
+ target_compile_definitions(${TEST_UDP_DRIVER_EXE} PRIVATE ${ASIO_DEFINITIONS})
target_link_libraries(${TEST_UDP_DRIVER_EXE} ${PROJECT_NAME} ${PROJECT_NAME}_nodes)
endforeach()
endif()
+3
View File
@@ -131,3 +131,6 @@ index 0000000..ef88d9a
+ <build_type>ament_cmake</build_type>
+ </export>
+</package>
diff --git a/COLCON_IGNORE b/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29