The serial base controller no longer powers the wheel servos now that the
wheels are on the external USB-CAN adapter, so GET_POWER/POWER_ON guards
nothing. With an unresponsive ESP32 it cost ~70 s of timeouts on every boot
before the script gave up and assumed power anyway.
Add --serial-handshake {true,false} (default true, unchanged). With false,
the serial port is still opened once, bounded to 5 s, so DTR/RTS are cleared
before the CAN link comes up, then CAN is brought up immediately.
The CH340 behind /dev/agvpro_controller rejects USB control transfers for up
to ~60s after a host reboot (kernel: "failed to send control message: -110"),
surfacing as TimeoutError from the TIOCMSET ioctl that clears DTR/RTS. Since
clearing DTR/RTS is what releases the ESP32's reset line, a single failed
attempt leaves the ESP32 held in reset and all its sensors silent.
can_power_on.py:
- open_serial_when_ready(): retry the open with backoff (60s budget) instead
of dying on the first timeout. open_serial() now closes the fd if setup
fails partway.
- try_power_on(): report success only when servo power is actually confirmed.
Previously every failure path returned True ("assuming powered"), so a
GET_POWER status of 0 followed by an unanswered POWER_ON still counted as
success and the stack continued with the wheels unpowered.
- Retry the handshake 5 times before falling back to the permissive
behaviour, and log loudly when it does.
- Never let a dead serial port block CAN bring-up. The wheel drives are on
CAN and are not powered by this board, so a dead ESP32 must only cost
IMU/voltage/IO/LED -- never the ability to drive.
- bring_up_can(): set the link down first so it is idempotent. The bitrate
cannot be set on an already-UP link, so any restart where the link was
still up aborted the launch and crash-looped the base stack.
agv_pro_hardware_interface.cpp:
- disable_dtr_rts(): retry briefly (2s budget), then continue rather than
give up instantly. This runs in on_activate after AgvProWheelsSystem is
already active, so a long block here starves the wheel read cycle until it
errors out and the controllers lose their interfaces -- hence the small
budget. can_power_on.py has normally already released the ESP32 by then.
- 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.
These were unintentionally dropped during the jazzy_mecanum_control merge when
a whole-file 'git checkout --theirs Dockerfile' was used to resolve a conflict
that only affected the colcon build cmake-args line. iproute2 provides the
`ip` binary that agv_pro_hardware/AgvProHardwareInterface and
agv_pro_bringup/can_power_on.py need at runtime to bring up the CAN interface.