Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luca-gambarotto opened this issue May 19, 2024 · 0 comments
Open

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

luca-gambarotto opened this issue May 19, 2024 · 0 comments

Comments

@luca-gambarotto
Copy link

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

Here's my configuration:

  • Ubuntu 20.04
  • Ros2 Humble
  • Ublox f9p receiver (baudrate 115200)

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant