pboon09
Gensurv Robotics

RTK-GNSS Navigation for a 1/5-Scale Autonomous Car

June 2025 – July 2025

Overview

Autonomous outdoor navigation for Flipbot, a 1/5-scale RC car with Ackermann steering, built during an internship at Gensurv Robotics. Lane-level driving outdoors needs position accuracy far beyond standard GPS, plus a map of where the lanes are.

RTK GNSS gives the car a centimeter-level position, and Lanelet2 HD maps give it the lanes. Pure Pursuit, Stanley and a combination of the two are compared on the same track.

My part was the autonomous navigation, the extended Kalman filter, the CAN-bus link to the motor and servo, and the ROS 2 system in Docker with its safety supervisors.

Hardware

VehicleFlipbot, 1/5-scale RC car with Ackermann steering, up to 3.0 m/s, steering range \(\pm 35^\circ\)
PositioningSparkFun RTK Express, one as base station and one on the car, 1.4 cm horizontal accuracy
HeadingWitMotion HWT101CT Z-Axis Inclinometer
DriveTwo Flipsky 6384 190KV brushless belt motors, left and right wheel, over CAN
SteeringRX-64 Servo Over RS485
Control BoardNXP board with two CAN channels
CAN InterfaceCANable 2.0 Pro USB adapter, or a TJA1050 module
Manual ControlJoystick with an Emergency Stop

System

ComputerNVIDIA Jetson Orin Nano Developer Kit
Control Rate100 Hz commands, 50 Hz feedback
Position Rate5 Hz RTK position, 200 Hz heading, 50 Hz fused pose
SoftwareROS 2 Humble in Docker, Lanelet2, RViz2, twist_mux

Process

  1. Get a centimeter-level pose

    An extended Kalman filter fuses two sensors into the vehicle pose.

    • RTK GNSS gives the position at 5 Hz.
    • The tilt sensor gives the heading at 200 Hz.
    • The filter publishes the fused pose at 50 Hz.
  2. Build the HD map

    A map tool creates Lanelet2 tracks as OpenStreetMap files, such as an oval, a stadium and a random circuit. The files are projected to a local east-north-up frame, and a centerline path is generated for the car to follow.

  3. Follow the path

    One launch file starts the chosen path follower, which reads the centerline path and the pose and outputs a velocity command.

    • Pure Pursuit steers toward a point on a lookahead circle.
    • Stanley corrects the cross-track error and the heading error directly.
    • The combined controller blends the two with a weight set by the path curvature, favoring Pure Pursuit on straights and Stanley in curves.
  4. Drive the car

    The velocity command is converted into a motor speed and a steering angle, and sent to the motors and servo over CAN. twist_mux lets the joystick override the controller, so a driver can stop the car at any time.

  5. Record and analyse

    Every run is recorded as a rosbag. An analysis script then computes five groups of metrics.

    • Cross-track error.
    • Heading error.
    • Control smoothness, from acceleration and jerk.
    • Stability, from the variance of both errors.
    • An overall score.

Results

Localization stayed below 2 cm outdoors.

  • The real car drove a stadium-shaped 14.85 m track at 1.0 m/s for 2 minutes per controller, with the same RTK pose source and map.
  • Pure Pursuit had the lowest cross-track error and angular jerk.
  • The combined controller had the lowest heading error.
  • Stanley had the highest errors.

Table 1. Path following on the real car, best value in bold

ControllerMean Cross-Track Error (m)RMS Cross-Track Error (m)Max Cross-Track Error (m)Mean Heading Error (\(^\circ\))Angular Jerk RMS (\(\mathrm{rad/s^3}\))
Pure Pursuit0.0540.0680.1165.43156.1
Stanley0.0950.1230.1986.84578.1
Combined0.0780.1020.1714.63245.0
Fig. 1. Pure Pursuit, driven path against the reference
Fig. 1. Pure Pursuit, driven path against the reference
Fig. 2. Pure Pursuit, error distribution
Fig. 2. Pure Pursuit, error distribution
Fig. 3. Stanley, driven path against the reference
Fig. 3. Stanley, driven path against the reference
Fig. 4. Stanley, error distribution
Fig. 4. Stanley, error distribution
Fig. 5. Combined controller, driven path against the reference
Fig. 5. Combined controller, driven path against the reference
Fig. 6. Combined controller, error distribution
Fig. 6. Combined controller, error distribution

Figures and Video

Flipbot, the 1/5-scale car
Flipbot, the 1/5-scale car
ROS 2 system architecture
ROS 2 system architecture