LORD-MicroStrain / ntrip_client

ROS NTRIP client
https://github.com/LORD-MicroStrain/ntrip_client
Other
55 stars 55 forks source link

`ntrip_client` does not attempt to reconnect to ntrip server if initially unsucceessful #11

Open vinnnyr opened 2 years ago

vinnnyr commented 2 years ago

If the driver does not have internet access or is otherwise unable to reach the ntrip server initially, it should try to reconnect rather than fatally exit.

Environment: ROS2, Galactic, Apt Install

Logs:

[ntrip_ros.py-2] [ERROR] [1653318828.756822754] [ntrip_client_node]: Unable to read response from server at <IP>
[ntrip_ros.py-2] [ERROR] [1653318828.760031632] [ntrip_client_node]: Exception: [Errno 110] Connection timed out
[ntrip_ros.py-2] [ERROR] [1653318828.763373159] [ntrip_client_node]: Unable to connect to NTRIP server
[ERROR] [ntrip_ros.py-2]: process has died [pid 75, exit code 1, cmd '/opt/ros/galactic/lib/ntrip_client/ntrip_ros.py --ros-args -r __node:=ntrip_client_node --params-file /tmp/launch_params_be1qi55t -r /nmea:=/nmea/sentence'].
tomy983 commented 2 years ago

Hi @vinnnyr, would you mind testing this PR #13 ? It should handle your problems.