KumarRobotics / ublox

A driver for ublox gps
BSD 3-Clause "New" or "Revised" License
438 stars 381 forks source link

Cannot configure GNSS for ZED F9R on Ubuntu 20.04 ROS 2 Foxy ARM64 #195

Open alex-shearer-swe opened 1 year ago

alex-shearer-swe commented 1 year ago

Describe the bug Repeated attempts to start ROS 2 Foxy ublox_gps node for ZED F9R device always end in a FATAL. Whether QZSS is enabled or disabled, the QZSS configuration is always "different":

[ublox_gps_node-1] [DEBUG] [1671498095.347203525] [ublox_gps_node]: QZSS Configuration is different 1, 1
[ublox_gps_node-1] [DEBUG] [1671498095.347210981] [ublox_gps_node]: QZSS Configuration: 286326785
[ublox_gps_node-1] [DEBUG] [1671498095.347217797] [ublox_gps_node]: QZSS Configuration: 286326785

This causes the node to determine that the configuration is not correct and reconfiguration is necessary. Reconfiguration always ends in a FATAL:

[ublox_gps_node-1] [FATAL] [1671498112.357696509] [ublox_gps_node]: Error configuring u-blox: Failed to cold reset device after configuring GNSS

To Reproduce Steps to reproduce the behavior:

  1. Check out foxy-devel
  2. Apply the git patch 0001-Edit-ZED-F9P-config-and-add-debug-statements.patch to the branch foxy-devel, which adds additional DEBUG statements, changes the default config to zed_f9p.yaml, increases the debug level to 2, and adds the additional config parameters:
    gnss:
      glonass: true
      beidou: true
      gps: true
      qzss: true
      galileo: true
      imes: false
  3. Connect the ZED F9R device via USB, and note the port, which is likely /dev/ttyACM0. If not, note the device and edit the config zed_f9p.yaml to reflect the proper device.
  4. Run the command ros2 launch unblox_gps ublox_gps_node-launch.py -d
  5. Compare output of the node to the attached log zed-f9r-foxy-devel-cfg-debug.log
  6. See error:
    [ublox_gps_node-1] [FATAL] [1671498112.357696509] [ublox_gps_node]: Error configuring u-blox: Failed to cold reset device after configuring GNSS

Expected behavior

Desktop:

vinaykumarhegde commented 1 year ago

@duxroq Any leads on this? #147 could have been the problem as well.

vinaykumarhegde commented 1 year ago

Anyone looking at fixing this, two things that worked:

Chose the second one and things are working as expected now.