- 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.
63 lines
2.6 KiB
Diff
63 lines
2.6 KiB
Diff
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..b43f738 100644
|
|
--- a/slam_gmapping/include/slam_gmapping/slam_gmapping.h
|
|
+++ b/slam_gmapping/include/slam_gmapping/slam_gmapping.h
|
|
@@ -35,11 +35,11 @@
|
|
#include "geometry_msgs/msg/pose.hpp"
|
|
#include "geometry_msgs/msg/pose_stamped.hpp"
|
|
#include "geometry_msgs/msg/transform_stamped.hpp"
|
|
-#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
|
|
+#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 "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));
|