Verify RTK Position Input in ROS 2 with SCOUT
On this page
Workflows
Workflows
Agriculture
Surveying
Robotics
Automotive
On a robot’s Linux host, /fix can keep publishing after NTRIP corrections stop. A stationary test makes that gap easy to see. With SCOUT connected, you’ll check the NavSatFix output and RTCM writeback, then record an interruption so you can see when corrections resume and how the receiver’s fix state changes.
Scope
This workflow ends with a reviewable recording and a check of the GNSS input your robot will receive. SCOUT calculates the position and reports the solution state. Localization fusion, vehicle control and measured positioning accuracy require separate tests.
Record the setup before opening the serial port
For a fresh Ubuntu 24.04 and Jazzy setup, follow Get Started with ROS to build the workspace and create the two local YAML files. This workflow uses the same source revision. Keep the antenna stationary under open sky so changes in its position or surroundings are less likely to affect the comparison.
SCOUT Series receivers are enclosed units that connect to the host over USB-C for power and serial data. Whether you are using an x86-64 mini PC or evaluating an Arm64 board such as a Raspberry Pi or Jetson, confirm the board’s OS and Jazzy support, build the workspace and check that the serial port is accessible before running the test.
Save these details with the session so you can rerun it later.
- Receiver
- Model and firmware, antenna placement, USB device path, baud rate and enabled NMEA sentences.
- Host and ROS
- Host OS, ROS distribution, source commit and, for Docker, the image tag or digest and the container’s ROS version.
- Corrections
- Caster and mountpoint, transport, and whether the provider needs GGA. Keep credentials out of the test record.
- Session files
- Keep the writable
log_directoryfrom the quick start and enable file logging in both local YAML files. Note the start time in UTC so you can locate this run in the operation logs.
The serial node owns the port in both directions. Close any configuration tool or terminal that already holds it. The NTRIP client connects to the caster and can send GGA when the service requires it.
| Topic | ROS message type | Publisher and purpose |
|---|---|---|
/nmea |
nmea_msgs/msg/Sentence |
The serial node publishes receiver sentences that pass its validation policy. The NTRIP node can use GGA from this stream. |
/fix |
sensor_msgs/msg/NavSatFix |
The serial node optionally publishes fixes parsed from GPGGA or GNGGA. Read the detailed RTK state from GGA. |
/rtcm |
mavros_msgs/msg/RTCM |
The NTRIP node publishes complete, CRC-checked frames. The serial node subscribes and writes them to the receiver port. |
/diagnostics |
diagnostic_msgs/msg/DiagnosticArray |
The NTRIP node reports the caster connection, frame counts and errors. Check serial writeback and GGA separately. |
source /opt/ros/jazzy/setup.bash
source "$HOME/kalmix_ros2_ws/install/setup.bash"
ros2 launch "$HOME/kalmix_ros2_ws/src/kalmix-ros-rtk-bridge/launch/kalmix_rtk.launch.py"
Run the launch in one terminal. In a second terminal, source the same ROS installation and workspace and run the checks below one at a time. If you use Docker, follow the repository’s container setup. Map the receiver into the container, use its mapped port in the serial YAML, and mount the log directory to the host. Preserve the installed workspace or mount the full workspace if you need to reuse the build. A disposable container removes anything saved only inside it.
Verify NavSatFix output and RTCM writeback
In the second terminal, use the quick start’s log directory or substitute the absolute path from your serial YAML. Run each live check separately and press Ctrl+C when you have enough output.
LOG_DIR="$HOME/kalmix-rtk-logs"
-
Check the receiver’s output in ROS
A steady NMEA stream confirms the serial input. If GGA is present,
/fixshould carrysensor_msgs/msg/NavSatFixmessages. Compare the observed/fixrate with the receiver’s configured GGA rate.ros2 topic echo /nmea --field sentence ros2 topic echo /fix ros2 topic hz /fix/diagnostics /fix /nmea /parameter_events /rosout /rtcmTopic list from the SCOUT PRO Docker session. Use
echoto inspect messages andhzto check their rate. -
Follow corrections to the serial port
Under
KALMIX NTRIP Clientin/diagnostics, look for an increasingrtcm_messagescount. Freshforwarded RTCM frameentries in the serial log then show that those corrections are being written to the port.ros2 topic echo /diagnostics ros2 topic hz /rtcm tail -n 0 -F "$LOG_DIR/kalmix_serial_operation.log" | grep --line-buffered -F 'forwarded RTCM frame'If the caster shows connected but the count stays flat, check the stream before troubleshooting the receiver.
-
Read the receiver’s fix state
In a
GPGGAorGNGGAsentence, the field after the longitude hemisphere gives the solution quality. A value of4indicates RTK Fixed and5indicates RTK Float. Record the starting state so you can compare it with the outage and recovery.
Record the session with rosbag2
Rosbag2 captures ROS messages while the bridge’s own logs show what happened on the network and serial links. If the Jazzy host has no ros2 bag command, install ros-jazzy-rosbag2. In the second terminal, start the recorder and give it a steady baseline before interrupting the caster connection. Keep it running until the recovery check is complete.
BAG_PATH="$LOG_DIR/rtk-input-$(date -u +%Y%m%dT%H%M%SZ)"
ros2 bag record -o "$BAG_PATH" --topics /nmea /fix /rtcm /diagnostics
| Bridge file | What to check |
|---|---|
kalmix_nmea.log |
Receiver sentences and reported solution state. |
kalmix_rtcm3.bin |
CRC-checked RTCM frames received from the caster. The raw file has no per-frame timestamps. |
kalmix_serial_operation.log |
Serial open or write errors and successful RTCM writeback. |
kalmix_ntrip_operation.log |
Caster session events, errors and retry activity. |
kalmix_nmea.log
kalmix_ntrip_operation.log
kalmix_rtcm3.bin
kalmix_serial_operation.log
These four filenames were listed in the Docker session. On a native host, look in the directory set in the two local YAML files.
Keep raw NMEA and bags local unless you intend to share the recorded locations. Remove credentials, endpoints and identifying data from any material you publish. The bridge can send GGA to the selected caster when that option is enabled.
Interrupt the correction link and watch it recover
Use a third terminal with the same ROS environment to watch diagnostics and logs while the bag runs. On a dedicated test host, disconnect the uplink used solely for the caster. Keep USB and local ROS communication active. Log the UTC time before dropping the link and again when restoring it. A 30–60 second interruption is one starting point. If GGA stays Fixed throughout, record that outcome too.
date -u +%FT%TZ
| Mark the time when… | Where to look |
|---|---|
| Fresh RTCM stops arriving | Frame counts and new serial writeback entries stop advancing. Watch whether NMEA continues on the still-connected USB link. |
| The bridge detects the interruption or retries | Check last_error, reconnect_attempts and the NTRIP operation log. An open socket may report connected for a while after frames stop. |
| The correction path resumes | Look for the session reconnect, then confirm that the frame count and successful writes advance again. |
| The receiver’s solution changes | Read GGA before, during and after the interruption. Record when Fixed returns if you observe it. The receiver may hold its prior state for a time. |
Loss of corrections and loss of satellite tracking are two different tests. With satellites still in view and corrections interrupted, the receiver may keep its current solution for a time, fall back to Float or Standalone, or report no fix. On supported SCOUT Series RTK+DR variants, degraded GNSS can produce a dead-reckoning-assisted solution reported as GGA quality 6. In this bridge, a parseable GGA sentence can still produce /fix even as quality changes. Read GGA and measure the topic rate during the test.
If your deployment also needs to recover from a USB disconnect, run a separate test with the network left up. Check whether the same device path reappears, whether NMEA resumes and whether new RTCM frames are written again. The NTRIP node can keep sending its last cached GGA after USB drops, so check fresh receiver output separately from the caster’s connection state. Record any restart you needed.
Inspect and replay the bag
Back in the recording terminal, stop the recorder with Ctrl+C. Check that the bag spans the baseline, interruption and recovery. If a topic is missing or shows zero messages, check the publisher, topic name and recorder’s ROS domain before relying on the bag.
ros2 bag info "$BAG_PATH"
Stop both bridge nodes before playback. Use a separate, unused ROS domain with no device-connected subscribers. Domain 42 is an example. The first command uses the recording terminal, where BAG_PATH is already set. The second runs in the inspection terminal. Source the same workspace in both so the custom message types are available. Playback includes receiver output and diagnostics.
ROS_DOMAIN_ID=42 ros2 bag play "$BAG_PATH" --topics /nmea /fix /diagnostics
ROS_DOMAIN_ID=42 ros2 topic echo /fix
Check NavSatFix before using robot_localization
Review one stable section and one interrupted section of your recording. Compare the rate and status seen by the ROS consumer with what the receiver reports. The values below describe the bridge revision used in this guide.
| Input check | What to account for |
|---|---|
| Rate and freshness | Check the observed GGA and /fix rates. Messages are stamped with the ROS clock at processing time, rather than the receiver’s measurement time. |
| Frame and installation | The frame is gnss. If the robot does not already publish the antenna transform, define base_link to gnss using the measured mounting offset in its URDF or TF setup. |
| Altitude | This revision copies the GGA altitude field and writes zero when it is empty. Validate the receiver’s output and convert to WGS84 ellipsoidal height before using it as standard NavSatFix altitude. |
| Status and covariance | For a parseable GGA sentence, a positive quality value maps to STATUS_FIX (0) in /fix.status.status. Read RTK Fixed and Float from GGA. Covariance is marked unknown; handle uncertainty and missing or stale observations in the downstream estimator. |
If your robot already publishes the antenna transform from its URDF, use that transform. For a bench setup without one, this Jazzy example assumes an antenna 0.20 m forward and 0.35 m up from base_link, with aligned axes. Replace the numbers with the measured installation before running it. Translation is in meters and angles are in radians.
ros2 run tf2_ros static_transform_publisher \
--x 0.20 --y 0.0 --z 0.35 --yaw 0.0 --pitch 0.0 --roll 0.0 \
--frame-id base_link --child-frame-id gnss
The navsat_transform_node in robot_localization takes a geographic fix, an earth-referenced heading and an odometry estimate. If your only direction measurement is GNSS course over ground, think about reversing. The robot can be facing forward while its measured direction of travel points backward. See RTK GPS for Robotics for sensor selection and full-system tests.
Isolate a failed link
| What you see | What to check first |
|---|---|
| The port will not open | Check the device path, Linux permissions, USB cable and whether another process holds the port. |
/nmea is active but /fix has no messages |
Check for parseable GPGGA or GNGGA and confirm that publish_nav_sat_fix is enabled. |
| Caster connects but frames do not advance | Check the mountpoint, the provider’s GGA requirement and the errors in /diagnostics. This revision rejects HTTP chunked streams. |
| RTCM advances but writeback is missing | Check that both nodes use the same RTCM topic, then look for serial errors and confirm file logging is enabled. |
| Writeback resumes but Fixed has not returned | Check sky view, correction continuity and the receiver’s RTCM input settings. Record the GGA state separately from caster recovery. |
Stop the combined launch before starting either package on its own. In a sourced terminal, run one launch at a time with an explicit configuration path. The serial-only run checks receiver output. The NTRIP-only run isolates caster session errors. A caster that requires GGA still needs a suitable live GGA feed.
BRIDGE_SRC="$HOME/kalmix_ros2_ws/src/kalmix-ros-rtk-bridge"
ros2 launch kalmix_gnss_serial serial_bridge.launch.py \
params_file:="$BRIDGE_SRC/kalmix_gnss_serial/config/serial.local.yaml"
ros2 launch kalmix_ntrip ntrip.launch.py \
params_file:="$BRIDGE_SRC/kalmix_ntrip/config/ntrip.local.yaml"
Trace the code and change one setting
Receiver to ROS. ReadNmea and PublishFix split the serial stream into sentences, apply the NMEA checksum policy, publish /nmea, and turn supported GGA sentences into optional /fix messages.
Caster to receiver. The NTRIP client feeds network bytes to the RTCM parser, which assembles frames and checks CRC24Q. The node publishes /rtcm. The serial node’s WriteRtcm sends them to the receiver.
As a small configuration check, stop the bridge, set publish_nav_sat_fix: false in serial.local.yaml, and restart. In a setup with no other publisher on those topics, /nmea should continue while the bridge stops publishing /fix. Restore the setting and restart before collecting the next bag. Rebuild the workspace when you change C++ source.
Use the revision’s serial and NTRIP parameter declarations alongside the two example YAML files. Match topic changes on the publishing and subscribing sides. The NTRIP client can read credentials from the environment variables selected by username_env and password_env. Nonempty explicit credentials take precedence. The serial setting named reconnect_interval_ms limits open-error logging in this revision. Measure reopen behavior from the test itself.
Frequently Asked Questions
Can I tell Fixed from Float in /fix?
Use the GGA quality field on /nmea. This bridge’s standard NavSatFix status does not distinguish the two.
Can I replay a bag without SCOUT connected?
Yes. Use a separate ROS domain with the bridge stopped. Source the same workspace so the message types are available for inspection.
Can I use this test to measure positioning accuracy?
Use a separate comparison against an independent reference. This workflow verifies delivery, reported fix state and what the host can observe during an interruption.
Next steps
Keep the configuration, bag and recovery notes together. If you change firmware, serial settings or the correction service, run the same checks again so you can compare the result.
Receivers for this workflow
The terminal output above comes from a SCOUT PRO Docker session. For either SCOUT Series receiver, start by checking the firmware, serial settings and enabled NMEA output on your own unit.

Kalmix SCOUT PRO
The receiver connected over USB-C in the Docker session. If you use the RTK+DR variant, record its GGA quality during a separate test of degraded satellite tracking.
View SCOUT PRO →
Kalmix SCOUT
A compact dual-band RTK receiver with USB-C serial for NMEA output and RTCM input. Check the GGA output rate on your unit before comparing runs.
View SCOUT →