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:
1 parent
bbcb753c94
commit
46f7cbb8b5
27 files changed
+362
-137
No files matched your search
@@ -1,5 +1,57 @@
|
||||
# TODO
|
||||
|
||||
## ROS 2 Lyrical migration (`lyrical` branch)
|
||||
|
||||
Everything except the lidar stack has been moved to build against `ros:lyrical`
|
||||
(Dockerfile, `upstream.lyrical.repos`, `rosdep-packages.txt`). The following upstream
|
||||
packages are temporarily excluded from the colcon build via a `COLCON_IGNORE` marker
|
||||
(captured in their respective `patches/*.patch` so it survives a fresh `vcs import`),
|
||||
pending a dedicated pass to get them building under Lyrical:
|
||||
|
||||
- `FAST_LIO` (`patches/fast_lio.patch`)
|
||||
- `livox_ros_driver2` (`patches/livox_ros_driver2.patch`)
|
||||
- `livox_sdk` (`patches/livox_sdk.patch`)
|
||||
- `Lslidar_ROS2_driver` (`patches/lslidar_ros2_driver.patch`, new)
|
||||
- `point_lio_ros2` (`patches/point_lio_ros2.patch`, new)
|
||||
- `unilidar_sdk2` (`patches/unilidar_sdk2.patch`)
|
||||
|
||||
`agv_pro_bringup`'s `exec_depend` on `livox_ros_driver2`/`lslidar_driver` is left as-is —
|
||||
rosdep's `--ignore-src` treats those as satisfied by the (ignored) local source packages,
|
||||
so this doesn't block `rosdep install`. The `wheel_interface`/lidar-dependent launch
|
||||
options simply won't have a built executable until the lidar packages are revisited.
|
||||
|
||||
- [ ] Re-enable the lidar packages above (remove their `COLCON_IGNORE`) and fix whatever
|
||||
breaks building them under `ros:lyrical`.
|
||||
|
||||
`agv_pro_base` hard-depends on `serial_driver`/`io_context` (from the
|
||||
`ros-drivers/transport_drivers` repo) at build time, but `ros-lyrical-serial-driver`/
|
||||
`ros-lyrical-io-context` aren't published as apt packages yet (confirmed via
|
||||
`apt-cache policy` in a real `ros:lyrical` container — index.ros.org lists them as
|
||||
"released" for lyrical, but the actual .debs haven't synced to the mirror). Worked
|
||||
around by vendoring `ros-drivers/transport_drivers` from source in
|
||||
`upstream.lyrical.repos` instead of relying on the apt packages. It also needed a
|
||||
CMake fix (`patches/transport_drivers.patch`): `ament_target_dependencies()` has been
|
||||
removed entirely from Lyrical's `ament_cmake`, so the `ASIO` linkage (a non-ROS
|
||||
dependency resolved via an old-style `Find<Pkg>.cmake` module, no modern imported
|
||||
target) had to be replaced with manual `target_include_directories`/
|
||||
`target_compile_definitions` using `${ASIO_INCLUDE_DIRS}`/`${ASIO_DEFINITIONS}`, and
|
||||
the package's own test targets switched to linking modern namespaced targets
|
||||
(`rclcpp::rclcpp`, `std_msgs::std_msgs__rosidl_typesupport_cpp`, etc.).
|
||||
|
||||
- [ ] Once `ros-lyrical-serial-driver`/`ros-lyrical-io-context` are actually published,
|
||||
consider dropping the vendored `transport_drivers` in favor of the apt packages
|
||||
again (re-run `./scripts/freeze-rosdep.sh` to confirm).
|
||||
|
||||
`ros-lyrical-cartographer-ros` (used by `agv_pro_bringup`) and `ros-lyrical-orbbec-camera`
|
||||
(used by `agv_pro_slam`) are likewise not yet published as apt packages for lyrical. Both
|
||||
are `exec_depend`-only (not needed to build), so they were simply removed from
|
||||
`rosdep-packages.txt` — same treatment as the lidar exec_depends. The corresponding
|
||||
launch options (cartographer-based mapping, Orbbec RGBD input) won't have a runnable
|
||||
package installed in the image until these are published upstream.
|
||||
|
||||
- [ ] Re-add `ros-lyrical-cartographer-ros`/`ros-lyrical-orbbec-camera` to
|
||||
`rosdep-packages.txt` once they're actually installable via apt.
|
||||
|
||||
Need to patch src/upstream/slam_gmapping/include/slam_gmapping/slam_gmapping.h
|
||||
|
||||
#include "tf2_geometry_msgs/tf2_geometry_msgs.h"
|
||||
@@ -33,7 +85,7 @@ package, after empirically confirming real CAN communication with the wheel driv
|
||||
- [ ] Confirm `can_timeout_ticks` (currently the package default, 4000 ticks = 200 ms) is an
|
||||
appropriate watchdog window for this platform.
|
||||
- [ ] Build-test: `colcon build` will build `robstride_ros2` and `ros2_socketcan` from
|
||||
source per `upstream.jazzy.repos` — not yet exercised in this workspace.
|
||||
source per `upstream.lyrical.repos` — not yet exercised in this workspace.
|
||||
- [ ] End-to-end test: confirm `ros2 launch agv_pro_bringup agv_pro_bringup.launch.py
|
||||
wheel_interface:=can` actually drives all four wheels through the full
|
||||
`ros2_control`/`mecanum_drive_controller` stack (only ad-hoc Python/CAN scripts have
|
||||
|
||||
Reference in new issue
Block a user