If you’ve ever ridden a bike down a mountain bike trail, you know it requires physical strength, coordination, and the ability to adjust your ride based on the observed trail conditions. Riders must be able to handle sharp curves and bends, obstacles on the trail, and recover from wheel slip while continuously processing and adapting to changes in the environment. While humans often appear to do these tasks intuitively, translating these capabilities to autonomous robotic systems remains a challenge, particularly for statically unstable, two-wheeled platforms.

For a robot, off-road navigation requires the ability to perceive the terrain and the agility to follow a safe path through that terrain. Operating a two-wheeled bicycle robot in these conditions introduces a variety of domain-specific difficulties:

  • Statically Unstable Dynamics: Unlike quadrupeds or rovers, a bicycle robot must constantly balance while executing locomotion tasks. It cannot come to a stop without performing a track-stand or falling over.
  • Hierarchical Control Interface: Traditional navigation architectures separate path planning from control execution. A high-level planner calculates waypoints or velocity commands, which a low-level controller tracks. At high speeds, this command interface creates suboptimal solutions due to different objectives and training distributions of the controller and the navigation planner.
  • Unstructured and Dynamic Outdoor Environments: Forest trails exhibit constantly changing ground friction, seasonal vegetation growth, bright sunlight, glare, and deep shadows. Additionally, obstacles like exposed tree roots, loose gravel, and narrow skinnies are difficult to capture in traditional elevation maps.
  • Real-Time Onboard Processing Perception: Operating at speeds exceeding 5 m/s requires high-frequency perception updates, with computation constrained to edge computing platforms on the robot.

At the RAI Institute, we’ve solved these complex dynamics and perception challenges by combining robust control and real-time environmental understanding with a low-latency connection between the two. 

Technical Approach: Unifying Locomotion and Local Navigation

An architecture based on separate systems for local navigation and control would be straightforward to design, but less likely to achieve high performance. Instead, we created a framework that replaces traditional control hierarchies with a perceptive, fully autonomous racing pipeline, which pairs with a real-time semantic elevation mapping pipeline. 

This framework was validated on the Ultra Mobility Vehicle (UMV), a two-wheeled bicycle robot designed for agile mobility. The robot has four actuated degrees of freedom (DOFs): The rear wheel drive, the fork steering angle, and two upper-body torso joints are used for active balance and control. The front wheel is unactuated. The onboard compute is handled by a dual-computer system featuring an UP Xtreme i12 dedicated to low-level motor control, the control policy, and state estimation, paired with an NVIDIA AGX Orin (64GB) running the perception stack.


The base UMV hardware remained mostly unchanged. However, we added a separate NVIDIA AGX Orin for running our perception stack, a ZED X Mini stereo camera for color images, a Livox Mid-360 LiDAR for perception-based state estimation, and a Robosense E1R LiDAR for the dense point cloud used for control. All sensors sit on a single 3D-printed mount inside a custom made Kevlar roll cage, which was ruggedized with waterjet-cut foam to survive crashes during testing.

The software architecture consists of two primary systems: Terrain Embedded Navigation (TENa) for reinforcement learning based control, and Semantic Maps (SemMap) for onboard perception. Instead of conditioning the control policy on pose or velocity targets, TENa embeds the local navigation route directly as a semantic layer within terrain meshes. These meshes are generated by our Trail-Library (TL) in a procedural fashion, or reconstructed from real-world, dense imagery, leading to so-called Digital-Twins (DTs).

The robot instantly reacts to its own balance and a local map of the ground’s height and the trail path to make split-second decisions on how to steer and ride. The policy observes proprioceptive states alongside a local two-layer semantic height scan, combining geometric height and trail traversability. These observations allow the robot to deploy the control policy, trained on privileged navigation data (the trail boundaries), without relying on a high-level planner. Throughout training, the policy jointly optimizes local navigation and control. TENauses three task rewards comprising forward exploration, trail adherences, and a track-stand. Reward weights remain fixed across different maneuvers, such as racing and parkour. Dynamic behaviors are shaped entirely by varying terrain geometry, semantic boundaries, and episode length.

These policies are then combined with real-time mapping, where the robot uses its cameras and LiDAR to map the trail at a rate of 30 times a second. It figures out what parts are safe to ride on, deals with unexpected obstacles, and updates its local map as it speeds along. This perception pipeline, SemMap, is used to reconstruct the semantic path in real time and onboard. RGB images (320×512) pass through a frozen DINOv3-s backbone and a feature upsampler to extract rich visual features. A dual-head, lightweight decoder maps features to per-pixel class logits while a parallel reconstruction head calculates a cosine similarity score against original features. This reconstruction score serves as an epistemic uncertainty signal to detect out-of-distribution (OOD). Then, per-pixel traversability scores are projected into an egocentric 2.5D grid map (15×15 m², 0.1 m cell resolution) and fused with LiDAR range data at 30 Hz. Finally, cells are updated using confidence weighting to filter out transient noise during fast yaw maneuvers.

Experimental Results

Deployment BenchmarkDescriptionAvg VelocityPeak VelocityKey Characteristics / Performance Notes
Allmend Trail (Outdoor)946 m total (6 runs)3.26 m/s> 5.0 m/s2.3× faster than human-operated UMV baseline; autonomous traversal.
Indoor Racing Circuit130 continuous laps in indoor circuit3.54 m/s5.0 m/sFull perception-control loop; 891 seconds of uninterrupted execution.
MoCap Indoor ParkourSlalom, slope, and staircase3.3–5.0 m/s5.0 m/s80% real-world success rate; cleared 1.2 m gap jump and landed on stairs.
Simulated Allmend DT419.1 m upper section9.81 m/sN/ASpecialized policy; completed trail segment in 42.7 s (89% success rate).

Outdoor Trail Racing

Deployed on the kilometer-scale Allmend Trail in Zurich, the UMV completed six autonomous runs spanning 946 meters of unstructured terrain. The system sustained an average velocity of 3.26 m/s and reached peak speeds exceeding 5 m/s while negotiating rock beds, pump-track waves, tabletop drops, and steep descents. Compared to the human-teleoperated UMV baseline from prior literature, which averaged 1.36 m/s, our autonomous framework achieved a 2.3x increase in average traversal speed.

Benchmark vs. Hierarchical Controls In Simulation

We benchmarked our unified policy against classical hierarchical setups, combining a velocity-tracking locomotion policy with several navigation planners, across 850 procedural trail environments.

Despite driving about 50% faster, our policy failed roughly an order of magnitude less often (6 to 15 times, depending on the difficulty level), with the gap widening on the harder terrain levels. 

On the highest difficulty level of procedurally generated trails, our generic policy achieved a 91% survival rate, whereas the best-performing hierarchical setup dropped to 46%.

The Road Ahead

While we demonstrated the power of this approach on a two-wheeled bicycle robot, the underlying TENa and SemMap frameworks are platform-agnostic. There are several potential applications of this technology. One of the most likely is high-speed search and rescue, where time is of the essence but terrain topology can change rapidly, causing traditional global mapping to fail.

Agricultural and forestry inspection could use autonomous navigation for narrow, overgrown farm rows, vineyards, and forest tracks that require real-time traversability estimation without explicit GPS guidance. Autonomous delivery could be optimized by deploying two-wheeled and narrow-track robotic platforms for energy-efficient, fast cargo distribution in unpaved rural infrastructure. Or unified semantic navigation policies could be transferred to quadrupeds and legged humanoids operating in complex, dynamic spaces.

Looking ahead, there are still challenges to solve before these potential applications become a reality. Field deployments on mountain bike trails revealed critical bottlenecks that shape an ambitious roadmap for autonomous trail racing. To overcome the limitations of the 2.5D elevation maps – which mistake soft vegetation for solid barriers and miss thin obstacles like tree roots – future work might focus on learning visual latent representations directly from onboard camera streams. In parallel, integrating active lateral roll degrees of freedom into the hardware could enhance post-airtime recovery and expand the robot’s physical stability limits.

For more technical details and videos of our results, our paper, Autonomous Trail Racing with a Bicycle Robot, can be found here, and the project page can be viewed here.