How to Add RTK GPS to a Small Mobile Robot: A Complete ROS 2 Setup
Tom Cosgrove,

TL;DR: To add RTK GNSS to a mobile robot in ROS 2, you need a multi-band GNSS receiver (for example u-blox ZED-F9P or Fixposition Vision-RTK 2), a properly mounted antenna with a ground plane, a source of RTCM corrections (NTRIP caster or a local base station), and a ROS 2 driver publishing sensor_msgs/NavSatFix. With a fixed RTK solution, you can expect approximately 1-2 cm horizontal accuracy, versus 1-3 m for standalone GNSS and around 1 m for SBAS. This guide walks you through receiver selection, antenna placement, correction streams, a working ros2 launch configuration, and how to verify the fix quality on a small UGV such as the Leo Rover.
Why add RTK GPS to a small mobile robot
Standard GNSS gives you a position within a few meters. That is fine for logging where a robot has been, but it will not let you follow a row of crops, return to a docking station, or geo-reference a sensor payload precisely. If you want to add RTK GNSS to a mobile robot in ROS 2 for field robotics tasks like precision agriculture, environmental monitoring, or outdoor SLAM ground truth, centimeter-level positioning is often required.
Real-Time Kinematic (RTK) GNSS reaches that accuracy by combining carrier-phase measurements from a rover receiver with correction data from a nearby reference station. The rover resolves integer carrier-phase ambiguities and outputs a “fixed” solution when the math converges.
What accuracy you actually get: float vs fixed vs SBAS
Before choosing hardware, understand what each solution type delivers in practice. The values below reflect typical performance for multi-band consumer/industrial receivers under open-sky conditions, based on manufacturer datasheets (u-blox ZED-F9P integration manual) and common field experience.
- Standalone GNSS: no corrections, single-frequency or multi-band, roughly 1.5-3 m CEP.
- SBAS (WAAS/EGNOS): free satellite-based augmentation, approximately 1 m accuracy.
- RTK float: corrections applied but ambiguities not resolved, approximately 20-50 cm.
- RTK fixed: ambiguities resolved, approximately 1-2 cm + 1 ppm of baseline length.
Here is a compact reference for planning your setup:
- Standalone: horizontal error approximately 1.5-3 m, convergence instant, no infrastructure required.
- SBAS: approximately 1 m, instant, needs SBAS satellite visibility.
- RTK float: approximately 0.2-0.5 m, seconds to converge, needs RTCM stream.
- RTK fixed: approximately 0.01-0.02 m, seconds to minutes to fix, needs RTCM stream and good sky view.
Baseline length matters: keep the rover as close to the base station as practical. Conventional single-base RTK is commonly used over baselines of up to roughly 10-20 km, although achievable performance depends on atmospheric conditions, constellation visibility, correction quality, and receiver capabilities. Longer baselines can make fixing slower or less reliable.
How to choose an RTK GNSS receiver for a UGV
For small mobile robots, three options cover most projects:
- u-blox ZED-F9P modules (ArduSimple simpleRTK2B, SparkFun RTK boards): dual-band L1/L2, GPS/GLONASS/Galileo/BeiDou, USB and UART, RTCM 3.x input. Widely used, well documented, affordable.
- Septentrio mosaic-X5: professional-grade, better multipath rejection, higher price.
- Fixposition Vision-RTK 2: a sensor-fusion device combining RTK GNSS with visual-inertial odometry. It can provide a fused pose when GNSS visibility is partially blocked, provided that visual-inertial tracking remains reliable. ROS 2 drivers are provided by the manufacturer, which can shorten integration time on a UGV.
If your robot will operate in open fields, a ZED-F9P board is often enough. If you need robust pose in mixed environments, a fused solution like the Fixposition Vision-RTK 2 can be worth the added cost because it can reduce the impact of GNSS outages on your navigation stack.
How to mount the antenna correctly
Antenna placement decides whether you ever see a fixed solution. The main issues are multipath (signals bouncing off the robot chassis) and interference from onboard electronics.
Follow these placement rules on a small platform like the Leo Rover:
- Use a survey-grade or multi-band helical/patch antenna rated for the receiver’s supported bands. For a ZED-F9P, use an antenna suitable for L1/L2. A cheap L1-only antenna can still receive RTK corrections, but it will not provide the robustness and ambiguity-resolution benefits of dual-band operation.
- Mount the antenna on a metal ground plane at least 10 cm in diameter for patch antennas. Helical antennas need less, but still benefit from separation.
- Raise the antenna above the highest metal surface of the robot. On a Leo Rover, a 10-15 cm mast keeps the antenna clear of the equipment plate.
- Keep the antenna cable and antenna away from motor drivers, DC-DC converters, high-speed digital devices, and their cables. These can create conducted or radiated interference that degrades GNSS reception.
- Record the antenna offset relative to the robot’s
base_link. You will need an appropriate static TF and frame configuration for correct lever-arm handling during EKF fusion.
How to get RTCM corrections
The rover receiver needs a stream of RTCM 3.x messages. You have three options:
- Public NTRIP caster: many countries operate free or paid national networks (for example ASG-EUPOS in Poland, RTK2go community caster worldwide). You connect over the internet using NTRIP client credentials.
- Commercial correction service: providers like Swift Skylark, Point One Polaris, or u-blox PointPerfect deliver corrections over cellular or Wi-Fi with wide coverage.
- Your own base station: a second ZED-F9P in survey-in mode, streaming RTCM over a radio link or Wi-Fi. Ensure that the radio link has enough throughput and reliability for the selected RTCM message set. This is useful when the robot operates offline or far from public networks.
For a robot with LTE connectivity, an NTRIP client running on the onboard computer is the simplest path.
How to configure the receiver and ROS 2 driver
The example below uses a ZED-F9P over USB and the ublox_dgnss ROS 2 package with an NTRIP client from ntrip_client (Aeronetlab or similar). Install versions of the packages compatible with your ROS 2 distribution in your workspace.
First, configure the F9P once using u-center: enable UBX-NAV-PVT, UBX-NAV-RELPOSNED (if you use moving base heading), set the measurement and navigation rates to 10 Hz, and enable RTCM input on the USB port. Save the configuration to flash.
Then create a launch file, rtk_gps.launch.py:
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='ublox_dgnss',
executable='ublox_dgnss_node',
name='ublox_gps',
parameters=[{
'DEVICE_SERIAL_STRING': '/dev/ttyACM0',
'CFG_RATE_MEAS': 100,
'CFG_RATE_NAV': 1,
'CFG_NAVSPG_DYNMODEL': 4,
}],
),
Node(
package='ntrip_client',
executable='ntrip_ros.py',
name='ntrip_client',
parameters=[{
'host': 'rtk2go.com',
'port': 2101,
'mountpoint': 'YOUR_MOUNTPOINT',
'authenticate': True,
'username': '[email protected]',
'password': 'none',
'ntrip_version': 'None',
}],
remappings=[('/rtcm', '/ublox_gps/rtcm')],
),
])
Key parameters to note: CFG_RATE_MEAS: 100 sets a 100 ms measurement interval. Together with CFG_RATE_NAV: 1, this gives a 10 Hz navigation solution rate. CFG_NAVSPG_DYNMODEL: 4 selects the “automotive” dynamic model, which suits a ground robot better than the default “portable” setting. If the platform moves at walking speed, model 3 (“pedestrian”) may also be appropriate. Use model 2 (“stationary”) only when the receiver is not expected to move.
Launch it with ros2 launch your_package rtk_gps.launch.py.
How to verify you have an RTK fix
The NavSatFix message includes a status.status field, but standard sensor_msgs/NavSatStatus does not distinguish RTK float from RTK fixed. In the ublox_dgnss driver, additional topics expose the carrier-phase solution status. Check them with:
ros2 topic echo /ublox_gps/navpvt
Look at the flags field. The carrSoln bits report:
- 0: no carrier-phase solution (standalone or SBAS).
- 1: RTK float.
- 2: RTK fixed – this is what you want.
Also confirm that RTCM messages are reaching the receiver. Run ros2 topic hz /ublox_gps/rtcm and verify that messages are arriving continuously. The expected rate depends on the caster and RTCM message set; 1 Hz or more is common. If corrections stop flowing, the receiver can eventually fall back from fixed to float or standalone operation.
To fuse the RTK position with wheel odometry and IMU, feed NavSatFix into navsat_transform_node from robot_localization, and run a second EKF that consumes the transformed odometry. Ensure that the GNSS antenna frame, base_link, and their static transform are configured correctly so lever-arm effects are handled during turns.
How to integrate on a Leo Rover
On a Leo Rover configured with an onboard computer running ROS 2, use a spare USB port for the GNSS receiver. Power the receiver from a suitable regulated 5 V supply, mount the antenna on a short mast above the equipment plate, and route the coax away from the motor controller. If you use a Vision-RTK 2, the device handles GNSS, IMU, and camera fusion internally, and you can subscribe to its fused pose output. That can reduce the amount of tuning needed in robot_localization.
For research use cases, this setup can provide repeatable outdoor position measurements for experiments. Fictionlab’s team documents similar integrations for academic and industrial users on the research applications page.
FAQ
Do you need a dual-antenna setup for heading?
Not necessarily. A single antenna gives you position but not reliable GNSS-derived heading when the robot is stationary. If your robot moves slowly or spins in place, add a second antenna (moving-base RTK) or use IMU orientation, potentially aided by a magnetometer, in your state-estimation pipeline. Fixposition Vision-RTK 2 can estimate orientation using visual-inertial data when visual tracking is available.
How long does it take to get an RTK fix?
Under open sky with valid RTCM corrections, a ZED-F9P can often reach a fixed solution in 10-60 seconds from cold start. Under partial obstruction, poor correction quality, or difficult multipath conditions, expect several minutes or a float-only solution.
Can you use RTK GPS indoors?
No. GNSS signals do not penetrate roofs reliably. For indoor localization, use LiDAR SLAM, visual SLAM, or UWB. RTK is primarily an outdoor tool.
What is the difference between RTK and PPP?
RTK uses local or network corrections and can converge in seconds to minutes. Precise Point Positioning (PPP) uses precise orbit and clock corrections, works without a nearby physical base station, but conventional PPP commonly takes several to tens of minutes to converge. PPP-RTK services, including u-blox PointPerfect where available, can reduce convergence time substantially, often to minutes depending on conditions and service coverage.
Does RTK work while the robot moves fast?
Yes. RTK is designed for kinematic use. The F9P supports velocities far beyond those of a small UGV. For a robot moving at 1-2 m/s, dynamics are not a limiting factor.
What happens when corrections drop out?
The receiver may retain a fixed solution briefly if carrier tracking remains good, but the duration depends on receiver settings, correction age, satellite geometry, and the environment. It can then fall back to float and eventually to standalone operation. Design your navigation stack to tolerate temporary accuracy drops, for example by widening path-following tolerances when carrSoln is not 2.
Is a helical or patch antenna better?
Helical antennas (like the Harxon HX-CH6601A or Beitian BT-200) are generally less sensitive to ground-plane size and orientation, which can make them easier to mount on small robots. Patch antennas can perform very well when installed on a suitable ground plane. For a Leo Rover-sized platform, a helical antenna is often the more forgiving choice.
Get the hardware for your RTK-equipped rover
If you are ready to build an RTK-capable UGV for outdoor research or field deployment, browse compatible platforms and accessories in the Fictionlab shop.