- 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.
53 lines
2.1 KiB
Diff
53 lines
2.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index be3040b..3176847 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -5,17 +5,39 @@ if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
endif()
|
|
|
|
-ADD_COMPILE_OPTIONS(-std=c++14)
|
|
-ADD_COMPILE_OPTIONS(-std=c++14)
|
|
-set(CMAKE_CXX_FLAGS "-std=c++14 -O3")
|
|
+# Ensure the bundled ikd-Tree submodule (include/ikd-Tree/ikd_Tree.cpp) is present.
|
|
+# Auto-initialize it when building from a git checkout; otherwise fail with guidance.
|
|
+if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/ikd-Tree/ikd_Tree.cpp")
|
|
+ find_package(Git QUIET)
|
|
+ if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|
+ message(STATUS "fast_lio: initializing git submodule include/ikd-Tree")
|
|
+ execute_process(
|
|
+ COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
|
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
+ RESULT_VARIABLE GIT_SUBMOD_RESULT)
|
|
+ if(NOT GIT_SUBMOD_RESULT EQUAL "0")
|
|
+ message(FATAL_ERROR
|
|
+ "git submodule update --init failed with ${GIT_SUBMOD_RESULT}. "
|
|
+ "Run it manually in ${CMAKE_CURRENT_SOURCE_DIR}.")
|
|
+ endif()
|
|
+ endif()
|
|
+ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/ikd-Tree/ikd_Tree.cpp")
|
|
+ message(FATAL_ERROR
|
|
+ "include/ikd-Tree/ikd_Tree.cpp is missing and could not be fetched automatically "
|
|
+ "(no git checkout available). Run: git submodule update --init --recursive")
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
+ADD_COMPILE_OPTIONS(-std=c++17)
|
|
+set(CMAKE_CXX_FLAGS "-std=c++17 -O3")
|
|
|
|
add_definitions(-DROOT_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexceptions")
|
|
-set(CMAKE_CXX_STANDARD 14)
|
|
+set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -std=c++0x -std=c++14 -fexceptions")
|
|
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread -fexceptions")
|
|
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
|