ROS2 (Humble) Package that publishes GPS Data from a Teltonika router (tested with RUTX50) via HTTP forwarding
Install Python library for the NMEA 0183 protocol:
pip install pynmea2
Put the files inside a ros workspace, in the src folder OR just create a new folder and inside the folder create another one called src and clone the repo there:
git clone https://github.com/TKL01/Teltonika-GPS-forwarding-via-HTTP-for-ROS2.git
then build outside of the src folder:
colcon build
source it, for example if the files are located in the ros2_ws workspace folder (~/ros2_ws/install/setup.bash)
source ~/ros2_ws/install/setup.bash
Set HTTP Server Settings. Put in your machine's IP, the default port is :3000 (can be changed in
Teltonika-GPS-forwarding-via-HTTP-for-ROS2/gps_tools/gps_server.py) and the forwarding Interval:
1st terminal:
ros2 run gps_tools gps_server
2nd terminal:
ros2 run gps_tools gps_publisher