gokulp01 / ros2-ublox-zedf9p

ROS2 drivers for U-blox ZED F9P
32 stars 15 forks source link

[Runtime error] Could not configure serial baud rate #5

Open luca-gambarotto opened 5 months ago

luca-gambarotto commented 5 months ago

Hi, I'm having issues running the ublox ROS2 node.

Here's my configuration:

The error I get, after updating the device to /dev/ttyUSB0 and the uart1.baudrate to 115200 in zed_fp9.yaml config file, is the following:

ros2 launch ublox_gps ublox_gps_node_zedf9p-launch.py


[INFO] [launch]: All log files can be found below /root/.ros/log/2024-05-19-07-34-31-474996-LUCA-42340
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [ublox_gps_node-1]: process started with pid [42341]
[ublox_gps_node-1] [INFO] [1716104071.510691400] [ublox_gps_node]: U-Blox: Opened serial port /dev/ttyUSB0
[ublox_gps_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ublox_gps_node-1]   what():  Could not configure serial baud rate
[ERROR] [ublox_gps_node-1]: process has died [pid 42341, exit code -6, cmd '/ublox_ws/install/ublox_gps/lib/ublox_gps/ublox_gps_node --ros-args --params-file /ublox_ws/install/ublox_gps/share/ublox_gps/config/zed_f9p.yaml'].

I tested with minicom on the same machine with sudo minicom -b 115200 -D /dev/ttyUSB0 and I was able to correctly see all the messages from the serial. I also tried u-center on a Windows machine and with baud rate 115200 it was working fine.

I also did usermod -a -G dialout $USER to be sure my user was in dialout group.

Do you have any idea on how to solve?