Skip to content

About

From Global Exploration to Local Coverage: A Hierarchical Air-Ground Multi-Robot Framework with Gaussian Process Fusion

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Multi-Fidelity Air–Ground Coverage

This repository simulates coordinated aerial and ground coverage of a spatial field using a centralized, asynchronous autoregressive multi-fidelity Gaussian Process (GP). Aerial robots collect LOW-fidelity observations, ground robots collect HIGH-fidelity observations, and one estimator produces the HIGH-field posterior used by both coverage controllers.

The implemented model is

$$ f_H(q) = \rho f_L(q) + \delta(q), $$

where $f_L$ is the LOW-fidelity latent field, $\delta$ is an independent discrepancy GP, and $\rho$ is the configurable fidelity-correlation parameter. The estimator uses Cholesky-based linear solves with adaptive jitter and publishes the most recent valid posterior if an update fails.

Features

  • One central estimator, owned by the coupled simulation, rather than a GP per robot.
  • Asynchronous LOW/HIGH observation scheduling and batched GP updates that are separate from controller and numerical-integration rates.
  • Obstacle-aware LOW/HIGH sampling with range, angular field-of-view, and conservative raster line-of-sight checks.
  • HIGH-field posterior mean and variance for aerial target construction.
  • Posterior-derived density for ground coverage.
  • HEDAC aerial coverage with Dubins aircraft and Lloyd or MPC ground coverage with unicycle robots.
  • Deterministic configurations, tests, evaluation scripts, and saved visual summaries.

Installation

The project requires Python 3.10 or newer. uv is the recommended dependency manager.

git clone <repository-url>
cd air_ground_coverage
uv sync

Alternatively, install the package and its dependencies with pip:

pip install -e .

Reproducing the paper results (Sec. VI)

Commands that regenerate the evaluation of Sec. VI of the paper, Figs. 3–6 and Table I. Run them from the repository root; results go under output/ (git-ignored). All simulation results use 30 paired episodes (seeds 42–71) and 2000 paired-bootstrap resamples. Set OPENBLAS_NUM_THREADS=1 when running several jobs in parallel.

Sec. VI-A: comparison with heterogeneous baselines (Figs. 3–4, Table I)

The baselines are run once over 90 s on the scenarios of configs/baseline_comparison_a3_g7.yaml and cut to 60 s, which is how the paper results were produced (Zhang plans over the whole horizon, so a cut 90 s run is not the same as a 60 s run).

B=output/four_method_comparison_90s          # 90 s scenarios and baselines
R=output/four_method_comparison_60s_deployment_retention   # paper results

# 1. Paired 90 s scenarios, then the baselines on them with noisy measurements
uv run python evaluation/run_multifidelity_comparison.py \
  -c configs/baseline_comparison_a3_g7.yaml --num-steps 900 -o $B/multifidelity/raw.npz
uv run python evaluation/run_egerstedt_comparison.py -i $B/multifidelity/raw.npz \
  -o $B/egerstedt_lr/raw.npz --measurement-model noisy
uv run python evaluation/run_egerstedt_comparison.py -i $B/multifidelity/raw.npz \
  -o $B/egerstedt_full/raw.npz --aerial-sensing-range 75 --measurement-model noisy
uv run python evaluation/run_zhang_comparison.py -i $B/multifidelity/raw.npz \
  -c configs/zhang_comparison.yaml -o $B/zhang/raw.npz --measurement-model noisy

# 2. Cut the baselines to 60 s
for m in egerstedt_lr egerstedt_full zhang; do
  uv run python evaluation/truncate_comparison_archive.py --duration 60 \
    --kind ${m%%_*} $B/$m/raw.npz $R/baselines_60s/$m/raw.npz
done

# 3. Proposed method, 60 s, limited (R_a = 10 m) and full aerial visibility
uv run python evaluation/run_multifidelity_comparison.py --num-steps 600 \
  -c configs/baseline_comparison_a3_g7_deployment_retention.yaml -o $R/multifidelity/raw.npz
uv run python evaluation/run_multifidelity_comparison.py --num-steps 600 \
  -c configs/baseline_comparison_a3_g7_deployment_retention_full_visibility.yaml \
  -o $R/multifidelity_full/multifidelity/raw.npz

# 4. Evaluate
uv run python evaluation/evaluate_four_method_comparison.py \
  --multifidelity $R/multifidelity/raw.npz \
  --egerstedt-lr $R/baselines_60s/egerstedt_lr/raw.npz \
  --egerstedt-full $R/baselines_60s/egerstedt_full/raw.npz \
  --zhang $R/baselines_60s/zhang/raw.npz -o $R/evaluated.npz
uv run python -c "from evaluation.multifidelity_parameter_sweep import evaluate_parameter_condition as e; \
  e('$R/multifidelity_full/multifidelity/raw.npz', '$R/multifidelity_full/evaluated.npz')"

# 5. Fig. 3, Fig. 4 and Table I
uv run python evaluation/plot_full_visibility_locational_cost.py \
  --four-root $R --full-root $R/multifidelity_full
uv run python evaluation/plot_four_method_trajectories.py \
  --input-dir $R/baselines_60s --proposed-dir $R --episode 22 --duration 60 \
  --no-aerial-footprints -o $R/plots/trajectories_episode_022_60s.pdf
uv run python evaluation/print_baseline_comparison_table.py
Paper Output
Fig. 3 $R/plots/coverage_locational_cost_with_full_visibility_60s.pdf
Fig. 4 $R/plots/trajectories_episode_022_60s.pdf
Table I printed by print_baseline_comparison_table.py

Sec. VI-B: sensitivity analysis (Fig. 5)

One-factor-at-a-time sweep over environment size, team composition, mission duration, obstacle density, aerial and ground sensing range, ground field of view and measurement noise (configs/multifidelity_parameter_sweep.yaml).

S=output/multifidelity_parameter_sweep_sweep
uv run python evaluation/run_multifidelity_parameter_sweep.py \
  -c configs/multifidelity_parameter_sweep.yaml -o $S --episodes 30 --bootstrap-samples 2000
uv run python evaluation/plot_multifidelity_parameter_sweep_summary.py \
  --manifest $S/manifest.json --grouped-effects --wide --label-scale 1.6 \
  --exclude duration:short_10s team_composition:A7_G3

Fig. 5 is $S/plots/all_parameters__coverage_kl__grouped_effects__wide.pdf. --factors runs a subset of factors; --reuse-raw re-evaluates existing runs without simulating again.

Sec. VI-C: software-in-the-loop real-time feasibility (Fig. 6)

Five 900 s missions with the MFGP estimator on the ground-station laptop and the PX4 simulator and robot processes on a second host, over ROS 2 and Wi-Fi. This needs the two-host setup described in docker/MULTIHOST_SITL.md (network, SSH, images and preflight check); replace the addresses with your own hosts.

uv run python docker/sitl_batch.py \
  --sim-host <user>@<sim-host-ip> --sim-ip <sim-host-ip> --laptop-ip <laptop-ip> \
  --seeds 1 2 4 9 11 --duration 900 \
  --replay-from output/sitl/batch/batch20_900s --batch-name mh_batch5_900s_r2
uv run python -m evaluation.plot_sitl_batch_publication \
  output/multihost_sitl/batch/mh_batch5_900s_r2 \
  --output-dir output/multihost_sitl/batch/mh_batch5_900s_r2/paper

Fig. 6 is output/multihost_sitl/batch/mh_batch5_900s_r2/paper/laptop_update_components.pdf. --replay-from reuses the scenarios of the earlier single-host batch batch20_900s, as in the paper runs; without it, each scenario is generated from its seed.

Single-host version. Without --sim-host, the same runner starts the MULLET/PX4 simulator, the robot containers and the ground-station services on one machine, pinning each to its own CPU cores. It needs MULLET in ~/mullet_sitl_sim (see docker/README.md); --build rebuilds the mfgp-deployment:local image first. This is how batch20_900s, whose scenarios the multi-host runs replay, was produced:

uv run python docker/sitl_batch.py --seeds $(seq 1 20) --duration 900 \
  --batch-name batch20_900s
uv run python -m evaluation.plot_sitl_batch_publication \
  output/sitl/batch/batch20_900s --output-dir output/sitl/batch/batch20_900s/paper

The same figures, including laptop_update_components.pdf, are written to output/sitl/batch/batch20_900s/paper/. The paper reports the multi-host runs: with a single host, the estimator shares the machine with the simulator, so its timings are not those of a separate ground station.

Configuration

configs/multifidelity.yaml is the canonical self-contained configuration. The estimator is selected explicitly:

estimator_mode: multifidelity

multifidelity:
  rho: 0.8
  gp_update_period: 1.0
  aerial_sensor_period: 0.5
  ground_sensor_period: 0.1

The complete, leaf-by-leaf reference—including units, valid ranges, and runtime effects—is in docs/multifidelity_config_reference.md.

How the coupled loop works

  1. Aerial and ground sensors collect area-uniform samples in their configured fields of view.
  2. The simulation timestamps and submits observations to the central estimator.
  3. On scheduled estimator updates, the GP fits the joint LOW/HIGH observation model and publishes a versioned HIGH-field posterior.
  4. The aerial controller receives an interest-plus-uncertainty target density derived from that posterior.
  5. The ground controller receives a posterior-derived importance density.
  6. HEDAC and the ground controller advance the robot states at their configured rates.

This ordering permits a HIGH-fidelity ground observation to change the posterior, aerial target density, and subsequent aerial command or trajectory.

Documentation

equations for the fields, sensors, multi-fidelity GP, densities, controllers, dynamics, scheduling, and metrics, with an equation-to-code map.

Repository layout

configs/       Canonical and smoke multi-fidelity configurations
docs/          Mathematical reference, configuration guide, status, and figures
evaluation/    Reproducible evaluation entry points
examples/      Coupled simulation CLI and standalone plot scripts
src/           Simulation, estimator, density, sensors, and controllers
tests/         Deterministic unit, integration, and behavioral tests

Validation and reproducible figures

Run the deterministic test suite with:

uv run pytest

Milestone plots are generated by standalone scripts in examples/ and saved under docs/assets/. The exact commands and interpretation of each artifact are recorded in docs/multifidelity_gp_status.md.

ROS/MULLET three-drone SITL prototype

The deployment layer lives in docker/. It runs one central simulated field/MFGP, a common-frame registry, two ground-role HIGH sensor agents and one aerial-role LOW agent, each containing its own coverage planner. The estimator remains central; planning runs onboard each drone. See the launch and readiness instructions before enabling the optional MULLET command bridge. Takeoff and landing are performed externally through MULLET; real-world flight has not been validated.

For cloned installations on the onboard computers and laptop, use docker/deploy.py and the hardware deployment guide. The Python script saves each host's role and settings, builds a ROS Jazzy image, and starts either one drone agent or the laptop's central services. Command output is disabled by default.

About

From Global Exploration to Local Coverage: A Hierarchical Air-Ground Multi-Robot Framework with Gaussian Process Fusion

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages