Get Started with ROS

Connect SCOUT to ROS 2 Jazzy on Ubuntu 24.04, forward NTRIP corrections over USB serial, and check the RTK state reported by the receiver.

Data flow
Receiver NMEA → ROS 2 position messages
NTRIP caster → RTCM → receiver serial port
SCOUT calculates the position and reports its solution state in GGA.

Before you start

  • A SCOUT Series receiver, GNSS antenna, and USB data cable. For the RTK check, place the antenna where it has a clear view of the sky.
  • Ubuntu 24.04 with ROS 2 Jazzy installed and the ROS apt repository configured.
  • An authorized NTRIP caster, port, mountpoint, and any required credentials. Check with your provider whether the endpoint uses TLS and needs GGA.

Need a correction service for a US site? Find NTRIP services on CAIRN, then obtain the connection details from the provider.

Connect SCOUT and identify the serial port

Connect SCOUT over USB. In the receiver configuration, confirm the baud rate and enable NMEA output with GGA and RTCM input on the same serial connection. Close the receiver configuration tool before launching the bridge so ROS can open the port.

ls -l /dev/serial/by-id/

Use the matching /dev/serial/by-id/ path when available. If the port belongs to dialout and your account lacks access, run sudo usermod -aG dialout "$USER", then sign out and back in before building. If no device appears, see the Linux USB serial checks in Tools & Utilities.

The common factory baud rate is 115200. The SCOUT PRO RTK+DR variant may use 921600. Use the baud rate currently configured on your receiver.

Build the bridge

Open a Bash terminal. These commands use the public source revision checked by the Jazzy build and test job.

Terminal 1 · Build and launch
sudo apt update
sudo apt install git build-essential cmake ros-dev-tools libboost-system-dev libssl-dev \
  ros-jazzy-ament-cmake ros-jazzy-ament-cmake-gtest \
  ros-jazzy-nmea-msgs ros-jazzy-mavros-msgs \
  ros-jazzy-sensor-msgs ros-jazzy-diagnostic-msgs

source /opt/ros/jazzy/setup.bash
mkdir -p "$HOME/kalmix_ros2_ws/src"
cd "$HOME/kalmix_ros2_ws/src"
git clone https://github.com/KalmixTech/kalmix-ros-rtk-bridge.git
cd kalmix-ros-rtk-bridge
git checkout --detach 5244de85c95eabeb43fddc2b470ca51d44b85849

cd "$HOME/kalmix_ros2_ws"
colcon build --symlink-install --packages-select kalmix_gnss_serial kalmix_ntrip
source install/setup.bash

Set the serial and NTRIP configuration

For the first setup, copy the two templates and create a log directory. If you already have local files, edit them in place to preserve your settings.

cd "$HOME/kalmix_ros2_ws/src/kalmix-ros-rtk-bridge"
if [ ! -e kalmix_gnss_serial/config/serial.local.yaml ]; then
  cp kalmix_gnss_serial/config/serial.example.yaml kalmix_gnss_serial/config/serial.local.yaml
fi
if [ ! -e kalmix_ntrip/config/ntrip.local.yaml ]; then
  install -m 600 kalmix_ntrip/config/ntrip.example.yaml kalmix_ntrip/config/ntrip.local.yaml
fi
chmod 600 kalmix_ntrip/config/ntrip.local.yaml
mkdir -p "$HOME/kalmix-rtk-logs"
realpath "$HOME/kalmix-rtk-logs"
File Settings
serial.local.yaml Set serial_port and baud_rate to match the receiver. Keep publish_nav_sat_fix enabled.
ntrip.local.yaml Set host, port, mountpoint and any required username and password. Match use_tls and send_gga to the provider's requirements. GGA can share your location with the caster.
Both files Set log_directory to the absolute path printed above. Keep enable_file_logging enabled for the writeback check.

Use literal absolute paths in YAML. ROS parameters do not expand ~ or $HOME. Keep credentials in local configuration and remove them and precise coordinates from anything you share.

Launch the bridge

Run the combined launch in the same terminal and leave it running. It loads both local YAML files from the source checkout.

Terminal 1 · Bridge
ros2 launch "$HOME/kalmix_ros2_ws/src/kalmix-ros-rtk-bridge/launch/kalmix_rtk.launch.py"

Verify the three stages

Open a second Bash terminal and load the same environment. Run the checks one at a time. Use Ctrl+C to leave a live check before running the next one.

Terminal 2 · Verification
source /opt/ros/jazzy/setup.bash
source "$HOME/kalmix_ros2_ws/install/setup.bash"

Check that ROS receives receiver data

ros2 topic echo /nmea --field sentence
ros2 topic echo /fix

Look for a continuous NMEA stream with GGA and corresponding position messages on /fix. The presence of these messages confirms that data is flowing into ROS.

Check that RTCM is written back

ros2 topic echo /diagnostics
tail -n 0 -F "$HOME/kalmix-rtk-logs/kalmix_serial_operation.log" \
  | grep --line-buffered -F 'forwarded RTCM frame'

Watch rtcm_messages increase in the NTRIP diagnostics, then look for new forwarded RTCM frame entries. These entries confirm serial writes. Check the receiver's GGA to see the resulting solution state.

Read the receiver's RTK state

ros2 topic echo /nmea --field sentence

Find a $GNGGA or $GPGGA sentence. Count the fields after the sentence ID. Field 6, immediately after the longitude hemisphere, is the GGA quality. In the illustrative excerpt below, the value is 4.

$GNGGA,<UTC>,<latitude>,N,<longitude>,E,4,…
GGA quality Typical receiver state
0 No fix
1 Standalone
2 Differential
4 RTK Fixed
5 RTK Float

If you see Float, keep the antenna in open sky and check that corrections continue to arrive. Measuring accuracy requires a separate test against an independent reference.

When finished, stop the combined launch with Ctrl+C.

If a check fails

Symptom First check
Serial port will not open Check the cable, device path, permissions and whether another program holds the port.
No NMEA or GGA Match the baud rate and enable GGA output on the configured port.
No RTCM frames Read last_error in /diagnostics. Check network access, caster settings, account, TLS and any GGA requirement.
Frame count rises, but no writeback Check the serial operation log for write errors and confirm file logging is enabled.

Find configuration details and limitations in the bridge repository. For USB serial help, see Tools & Utilities. If you are still blocked, contact Kalmix support.

Product selection

Choosing between SCOUT and SCOUT PRO?

Compare the two receiver configurations and choose the right starting point for your integration.