# MARE: An Open-Source Lunar Rover Simulator with Shadow Ground Truth for Perception and Autonomy

Robotics.world

> Rovers exploring the Moon — especially near the poles where the sun sits only a few degrees above the horizon — must navigate long, high-contrast shadows that break stereo vision, terrain…

**arXiv**: 2610.28465 · Preprint · not peer-reviewed

**Published**: 2026-10-20

**Authors**: Raúl Castilla-Arquillo, Miguel Olivares-Mendez

## In plain words

Rovers exploring the Moon — especially near the poles where the sun sits only a few degrees above the horizon — must navigate long, high-contrast shadows that break stereo vision, terrain segmentation, and localization.

## AI summary

## Overview

**Research area:** Space robotics simulation — lunar rover perception, terrain generation, and autonomous navigation, with a focus on ground truth for shadows and wheel tracks.

**Technical level:** Intermediate. The paper is a systems/tooling paper rather than a new algorithm; readers benefit from familiarity with ROS 2, Unreal Engine plugins, stereo vision, and path planning terminology, but the motivation and results are described in accessible terms.

**Scope (one sentence):** MARE is an open-source Unreal Engine 5 + ROS 2 simulation suite that generates lunar terrain, simulates two physics-based rovers with stereo, lidar, event, and SPAD sensor plugins, streams pixel-accurate object and shadow ground truth, and closes the loop with a containerized guidance, navigation, and control stack — validated by comparing terrain-derived shadow predictions against engine renders and by measuring stereo depth coverage in sunlit versus shadowed regions.

## What This Paper Is About

Rovers exploring the Moon — especially near the poles where the sun sits only a few degrees above the horizon — must navigate long, high-contrast shadows that break stereo vision, terrain segmentation, and localization. Training and testing perception algorithms for these conditions demands large volumes of sensor data with exact labels (shadow masks, object classes, depth, pose), which field campaigns and analog facilities supply only at high cost and with limited variety. MARE aims to close that gap with a single open-source pipeline in which the same terrain model builds the scene, produces the ground truth, and serves as the rover's planning map.

## Key Contributions

1. **An integrated three-part open-source suite.** Terrain Studio (terrain and scene generation), an Unreal Engine 5 simulation project (rovers, sensors, ground truth), and a containerized ROS 2 GNC stack with web-based mission control, each released as its own repository, with all components sharing one terrain model so labels, maps, and sensors operate in the same world.
2. **Shadow prediction before rendering.** Terrain Studio predicts cast shadows directly on the Digital Elevation Map using Corripio's method, so a scene can be configured for specific lighting conditions before the engine renders it, and the prediction can be compared against the render as a consistency check.
3. **Pixel-accurate ground-truth labeling beyond existing planetary simulators.** A dedicated mask camera assigns every pixel both an object class (sky, sun, landscape, crater, crater rim, wheel track, boulder, small rock, rover) and a shadow class (sunlit versus shadowed ground, sunlit versus shadowed objects, and the rover's own cast shadow) — labels targeting the specific lunar perception failure modes of static terrain shadow, moving self-shadow, and wheel-track-altered surface.
4. **Reusable non-ROS sensor plugins including event and SPAD cameras.** UnrealStereoCam, UnrealLidarCam, UnrealEventCam (based on the ESIM model), UnrealSPADCam (photon model ported from spadSim), and UnrealSimClock (shared simulation clock), plus a simulated IMU from rover odometry; the paper notes that of the fifteen simulators in a recent survey, none supports event cameras and only one offers limited SPAD support.

## Main Findings

- **Shadow prediction matches rendering at low sun.** Across three terrains, the mean IoU between predicted and rendered shadows was **0.79** at sun elevations of **25° and below**, and highly consistent per terrain (**0.78**, **0.79**, **0.78** for Mare, Cratered, and Procedural respectively).
- **Total shadowed area agrees even where IoU is sensitive.** Predicted and rendered shadowed areas differed by an average of only **1.5%** of terrain area. Above **30°** sun elevation, shadows occupy less than **2%** of the terrain, so small pixel offsets disproportionately degrade IoU.
- **Stereo coverage drops on shadowed ground, but accuracy does not.** Up to **20°** sun elevation, coverage falls from **90–93%** on sunlit ground to **80–85%** on shadowed ground. Where depth is successfully computed, median error stays below **5 mm** on the ground and below **10 cm** on rocks — shadows mainly cause missing data rather than wrong measurements.
- **The coverage gap widens for small, high-elevation shadows.** At **30°** and **45°**, shadowed coverage falls to **57.4%** and **46.8%**, with error above the 10% threshold rising to **9.8%** and **21.1%** in shadow. Sunlit coverage also declines with sun elevation (**93.4%** at 5° down to **74.2%** at 45°), since steeper illumination reduces the shading needed to resolve regolith texture.
- **Rocks show the same illumination dependence.** **99.5%** of sunlit rock pixels return valid depth, versus **87.6%** of shadowed rock pixels.
- **Runtime on consumer hardware is modest.** On a laptop with an NVIDIA GeForce RTX 4060 Laptop GPU (Unreal Engine 5.7.4, ROS 2 Jazzy), odometry and IMU publish at **13–28 Hz**, navigation camera images at **2.3–4.3 Hz**, lidar clouds at **0.7–1.0 Hz**, and the stereo depth pipeline takes **230–250 ms** per cycle — with simulation timestamps preserving temporal consistency despite the varying rates.

## Methodology in Plain English

The team built three pieces that talk to each other. **Terrain Studio** creates a 2D elevation map — either synthetic (smooth large-scale relief plus fine roughness plus non-overlapping craters, with crater depth and rim height set as configurable ratios of crater radius) or loaded from real data such as Lunar Reconnaissance Orbiter Narrow Angle Camera products. Rocks are placed according to a size-frequency distribution scaled to LRO Diviner rock abundance, and drivable corridors are carved out using a Voronoi diagram of impassable crater centers, keeping both corridors and crater bowls rock-free. Terrain Studio then steps the sun across the map, computing shadow heights cell by cell toward the light to predict where shadows fall, and finally scripts the Unreal Engine editor to build the level.

In the **Unreal Engine project**, two physics-based rovers — a four-wheeled skid-steer model of the Fictionlab Raph Rover and a six-wheeled Yutu with solar arrays and a sensor mast — carry the sensor plugins. Each plugin renders its own captures and streams them over TCP to a dedicated ROS 2 node, time-stamped with engine simulation time. A post-processing material on a mask camera writes object and shadow labels per pixel: rocks and the rover get custom stencil values at placement, craters and rims are projected from the generator's crater list, and the rover's own shadow is isolated by rendering the rover's depth from the sun.

For validation, the authors rendered each terrain top-down through an orthographic camera twice — once with shadows, once without — and classified a cell as shadowed if its luminance dropped below half of its unshadowed value (or stayed dark in both). Because this is a differential comparison, the labels are insensitive to local albedo and slope shading. They then drove the rover along a 5 m straight segment at six sun elevations and compared the GNC stack's stereo depth (semi-global block matching) against ground-truth depth, splitting the pixels by the shadow mask. The autonomy stack itself uses a Fast Marching Method global planner (based on DyMu) that treats slopes above 15° as impassable, a Dynamic Window Approach local planner, and lidar-triggered re-planning.

## Why This Matters

**Impact on research.** The paper highlights a reproducibility problem — only eight of fifteen surveyed planetary simulators are publicly available — and answers it with three open repositories. More importantly, it makes a measurement that conventional image-wide averaging hides: shadows degrade stereo by removing matches, not by corrupting them. That distinction changes how a perception engineer would design a fix (fill in missing depth rather than filter outliers).

**Real-world applications:**

- Benchmarking and training lunar perception, odometry, and terrain-segmentation algorithms against labeled shadow and self-shadow data that is otherwise expensive to obtain.
- Planning and rehearsing rover traverses and lighting conditions for polar missions before hardware exists, using predicted shadows to pick when and where to drive.
- Developing and testing emerging low-light sensors (event cameras, SPAD cameras) in a labeled environment, since the paper reports these are nearly absent from existing planetary simulators.
- Mission-operations training and interface prototyping, using the web-based mission control to practice goal assignment, teleoperation, and rosbag replay.

**Industry relevance.** Space agencies, commercial lunar lander and rover developers, and sensor manufacturers can use the suite without licensing costs or bespoke graphics infrastructure, since it runs on a single workstation with consumer-grade graphics hardware and supports VR headsets for immersive scene inspection. The Model Context Protocol servers on Terrain Studio and the GNC stack also position the suite as a testbed for AI agents that generate terrain, launch simulations, and command rovers.

## Future Directions

- **Deriving illumination from planetary ephemerides** rather than manually set sun azimuth and elevation, so lighting reflects actual solar geometry at a given location and time.
- **Systematically evaluating navigation performance** across a wider range of terrains, rover configurations, and lighting conditions — the current study covers three terrains and a single 5 m driving segment for stereo evaluation.
- **Closing the perception gap in shadow.** Given that shadows cause missing stereo depth rather than error, a natural next question is whether shadow and self-shadow masks can be used to fill, fuse with lidar, or otherwise recover depth in shadowed regions.
- **Validating sim-to-real transfer.** The paper reports no comparison against real lunar or analog-site imagery; establishing how well rendered shadows and stereo behavior match physical data remains open.

## Target Audience

Robotics researchers and graduate students working on planetary perception, localization, and autonomy; space robotics engineers who need labeled lunar data without a field campaign; developers of event-based and single-photon sensing who lack a simulation environment; and simulation-tooling engineers interested in how Unreal Engine plugins, ROS 2, and pixel-accurate ground truth can be integrated into one pipeline.

## Authors’ abstract

Lunar surface exploration increasingly relies on autonomous rovers that must perceive and traverse unstructured terrain under extreme illumination conditions. Near the lunar poles, low sun elevations produce long, high-contrast shadows that challenge stereo vision, terrain segmentation, and localization. Developing perception and navigation algorithms for these conditions requires large amounts of sensor data with accurate ground truth, which field campaigns and analog…

[The full abstract on arXiv](https://arxiv.org/abs/2610.28465)

[Read the original paper](https://arxiv.org/abs/2610.28465)

## Related papers

- [An Integrated Open-Source Stack for Vision-Based Autonomous Navigation of Wheeled Rovers](https://robotics.world/paper/an-integrated-open-source-stack-for-vision-based-autonomous-navigation-2611.08100) 2026-11-05 · cs.RO · Key terms of the title in common
- [FALCON-S: Fixed-wing ground-effect Aerodynamics Simulator and Flight Control Learning Suite](https://robotics.world/paper/falcon-s-fixed-wing-ground-effect-aerodynamics-simulator-and-flight-2609.06046) 2026-09-05 · cs.RO · Also by Miguel Olivares-Mendez
- [SCoCaT: Success Conditioned Constrained Reinforcement Learning for Spacecraft Docking](https://robotics.world/paper/scocat-success-conditioned-constrained-reinforcement-learning-for-2609.06061) 2026-09-05 · cs.RO · Also by Miguel Olivares-Mendez
- [Reward-Free Continual Adaptation for Resilient Space Robots](https://robotics.world/paper/reward-free-continual-adaptation-for-resilient-space-robots-2608.23452) 2026-08-24 · cs.RO · Also by Miguel Olivares-Mendez
- [ARTS: An Open-Source, Reproducible Three-Arm Platform for Autonomy Research in Minimally Invasive Surgery](https://robotics.world/paper/arts-an-open-source-reproducible-three-arm-platform-for-autonomy-2611.15135) 2026-11-11 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/mare-an-open-source-lunar-rover-simulator-with-shadow-ground-truth-for-2610.28465
