arXiv:2610.28465cs.ROOct 2026

Manuscript Offprint

arXiv:2610.28465

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

Raúl Castilla-Arquillo, Miguel Olivares-Mendez

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

R. Castilla-Arquillo 1^{1} and M. Olivares-Mendez 1^{1}

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 facilities can only provide at high cost and with limited variety. This paper presents MARE (Modular Autonomy and Rendering Environment), an open-source simulation suite for lunar rover perception and autonomy built on Unreal Engine 5 and ROS 2. MARE consists of three integrated components. Terrain Studio generates cratered and rocky lunar Digital Elevation Maps (DEMs) to build simulation scenes. A dedicated Unreal Engine project hosts two physics-based rovers with plugins for stereo, lidar, event, and Single-Photon Avalanche Diode (SPAD) cameras, streaming timestamped sensor data and pixel-accurate ground truth. Lastly, a Guidance, Navigation, and Control (GNC) stack provides web-based mission control. Validation shows a mean Intersection over Union (IoU) of 0.79 between predicted and rendered shadows at low sun elevations, and stereo depth analysis verifies decreased pixel coverage in shadowed regions relative to sunlit terrain.

I. INTRODUCTION

Planetary rovers depend on their Guidance, Navigation, and Control (GNC) system to traverse complex terrain autonomously, since communication delays limit direct human control. On the Moon, extreme illumination conditions complicate this task: near the poles, the sun remains only a few degrees above the horizon, casting long, high-contrast shadows that continuously alter the terrain's appearance over time [1], [2]. Developing and validating perception and navigation algorithms for these environments requires large volumes of sensor data paired with accurate ground truth, including object labels, shadow masks, depth maps, and the rover pose.

While field campaigns at analog sites and laboratories produce realistic datasets, they are costly and provide little control over terrain geometry and illumination. Simulation bridges this gap by generating labeled data within strictly controlled, repeatable environments. Building on the success of terrestrial game-engine simulators like CARLA [3] and AirSim [4], recent work has adapted high-fidelity rendering for planetary contexts. Allan et al. [5] developed a Gazebo simulator utilizing physically based rendering and fractal terrain for polar rovers. OmniLRS [6] leverages NVIDIA Isaac

Figure

Fig. 1. Overview of MARE: (1) terrain generation, (2) simulation, (3) ground truth, and (4) autonomous navigation.

Sim to offer ray-traced lunar rendering, terrain deformation, and mission integration. Similarly, Space Robotics Bench [7] applies procedural generation and domain randomization in parallel environments for zero-shot sim-to-real learning. Other notable platforms include LunarSim [8], which pairs Unity's visuals with ROS 2 for computer vision evaluation, and MarsSim [9], which links multiscale Martian landscapes with a Gazebo wheel-soil terramechanics plugin.

Despite these advances, planetary simulation tools remain fragmented. A recent survey [10] noted that only eight of fifteen reviewed simulators are publicly available, limiting reproducibility in the community. Current systems typically isolate specific domains like rendering, policy learning, or vehicle dynamics, rather than providing a unified pipeline from terrain creation to closed-loop autonomy with pixel-accurate labeling. Bridging this gap requires complete stack consistency: the same terrain model used to build the scene must also generate the ground truth and serve as the rover's planning map, ensuring labels, maps, and sensors all operate within the same world.

Within this ground truth, shadows and wheel tracks deserve particular attention. Because the Moon lacks an atmosphere, shadowed regions remain almost completely dark; a shadow can conceal a rock or crater, eliminate the surface texture needed for stereo matching, or be mistaken for an obstacle. Consequently, rock and crater detection depends strongly on

1^{1}R. Castilla-Arquillo and M. Olivares-Mendez are with the Space Robotics (SpaceR) Research Group, SnT, University of Luxembourg, Luxembourg (email: raul.castilla@uni.lu).

Figure

Elevation and soil maps: the global route is planned on the same terrain model

Fig. 2. Architecture of the MARE simulation suite.

illumination [11]. At low sun elevations, the rover's own shadow also extends far ahead of or behind the vehicle, occupying a large portion of the navigation camera images. Because this shadow moves with the rover, it undermines the static-scene assumption of visual odometry and compromises terrain segmentation. Similarly, the wheel tracks the rover leaves alter the appearance of the traversed surface. Perception algorithms operating under these conditions must therefore be trained and evaluated with labels that distinguish sunlit from shadowed terrain, the rover's self-shadow from static terrain shadows, and wheel tracks from the undisturbed surface, which existing planetary simulators rarely provide.

These illumination extremes also motivate sensing modalities beyond conventional cameras and lidar. Emerging sensors, such as event cameras and Single-Photon Avalanche Diode (SPAD) cameras, are of growing interest for lunar perception under low- and high-contrast lighting [2]. However, they remain largely absent from existing planetary simulators: none of the surveyed platforms supports event cameras, and only one provides limited SPAD support [10].

To address these gaps, we present MARE (Modular Autonomy and Rendering Environment), an open-source simulation suite for lunar rover perception and autonomy built on Unreal Engine 5 and ROS 2. Figure 1 shows its end-to-end pipeline. Terrain Studio generates procedural or real lunar terrain with craters and rock fields and builds the scene in Unreal Engine. Two physics-based rovers carry reusable sensor plugins, including stereo, lidar, event, and SPAD cameras, synchronized by a shared simulation clock. A ground-truth module produces pixel-accurate object and shadow masks for craters, crater rims, rocks, wheel tracks, and the rover's own shadow. Finally, a containerized GNC stack drives the rover autonomously, supervised from a web-based mission control. We validate the suite in two ways: by comparing shadows predicted from the terrain model with those rendered by the engine on three terrains, and by evaluating stereo depth separately on sunlit and shadowed terrain using the ground-truth masks. The source code is publicly available on GitHub 1^{1}, together with a video overview 2^{2}.

References (21)