Software
Fields2Cover
By Fields2Cover, Netherlands (checked on github.com/Fields2Cover (opens in a new tab)), from github.com/Fields2Cover/Fields2Cover (opens in a new tab)
- Navigation and mapping
- Library
- BSD-3-Clause
A C++ library with Python bindings that plans complete coverage paths for autonomous agricultural vehicles over a field, including headlands, swaths and drivable turns.
Facts
- GitHub stars
- 939read on 28 Nov 2026
- Last update
- 27 Oct 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 070ee81 (opens in a new tab), on 30 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Generates headlands, swaths, an optimized route and a drivable path with feasible turns for a given field and vehicle.
- Modular pipeline where headland, swath, route and path planning can be used separately or through a single planCovPath call.
- Handles non-convex fields and obstacles through trapezoidal and boustrophedon decomposition.
- Optimizes routes with OR-tools and offers classic patterns such as boustrophedon, snake and spiral.
- Produces kinematically feasible turns using Dubins and Reeds-Shepp curves.
- Provides a common framework for implementing and comparing coverage path planning algorithms, with a C++17 core and a ROS 2 integration.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 27 Oct 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/Fields2Cover/Fields2Cover (opens in a new tab)
- The version Robotheca read070ee81 (opens in a new tab)
- Latest releasev2.1.0 (3 Sept 2026)
Robotheca read the repository at two versions: the summary at 93c0989 and the facts and the README at 070ee81 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Fields2Cover, at commit 070ee81, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here

Robust and efficient coverage paths for autonomous agricultural vehicles
Documentation (opens in a new tab) • Installation (opens in a new tab) • Quick Start (opens in a new tab) • Tutorials (opens in a new tab) • API (opens in a new tab) • Paper (opens in a new tab)
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) Image: DOI (opens in a new tab) (opens in a new tab)
Fields2Cover is an open-source C++ library with Python bindings that solves the Coverage Path Planning problem for agriculture: given a field and a vehicle, it computes a complete coverage path — headlands, swaths, an optimized route, and a drivable path with feasible turns. It also provides a common, extensible framework to implement and compare coverage path planning algorithms, so researchers don't have to re-implement every algorithm they want to compare against. The API is still evolving, so expect occasional breaking changes between releases.

Core features
- Modular pipeline: headland generation, swath generation, route planning and path planning as interchangeable modules — or a single call to
planCovPath. - Non-convex fields and obstacles, handled by trapezoidal and boustrophedon decomposition.
- Route optimization with OR-tools (opens in a new tab), plus classic patterns like boustrophedon, snake and spiral.
- Kinematically feasible turns using Dubins and Reeds-Shepp curves, with or without continuous curvature.
- C++17 core, Python bindings, and a ROS 2 integration via opennav_coverage (opens in a new tab).
Quick Start
Fields2Cover builds on GDAL, GEOS and OR-tools, which need to be installed first (details in the installation guide (opens in a new tab)):
# Ubuntu
sudo apt install build-essential libgdal-dev libgeos-dev libeigen3-dev libboost-dev \
libtbb-dev libtinyxml2-dev nlohmann-json3-dev libpython3-dev gnuplot
# plus OR-tools for C++: https://developers.google.com/optimization/install/cpp
# macOS
brew install gdal geos or-tools tinyxml2 eigen tbb boost gnuplot
C++
#include "fields2cover.h"
int main() {
F2CField field = f2c::Parser::importFieldGml("data/test1.xml");
F2CRobot robot(2.0, 6.0, 0.5, 0.2);
F2CPath path = f2c::planCovPath(robot, field, false);
f2c::Visualizer::figure();
f2c::Visualizer::plot(field.getCellsAbsPosition());
f2c::Visualizer::plot(path);
f2c::Visualizer::show();
return 0;
}
find_package(Fields2Cover REQUIRED)
target_link_libraries(<your_target> Fields2Cover)
Python
pip install fields2cover
import fields2cover as f2c
field = f2c.Parser().importFieldGml("data/test1.xml")
robot = f2c.Robot(2.0, 6.0, 0.5, 0.2)
path = f2c.planCovPath(robot, field, False)
f2c.Visualizer.figure()
f2c.Visualizer.plot(field.getCellsAbsPosition())
f2c.Visualizer.plot(path)
f2c.Visualizer.show()
Installation
- Python:
pip install fields2cover— the package is built from source on your machine, so the system dependencies above must be installed. - C++ / from source: clone this repository and build with CMake — full walkthrough in the installation guide (opens in a new tab).
- ROS 2: see opennav_coverage (opens in a new tab), a Nav2-compatible coverage task server built on Fields2Cover.
Documentation
The extended documentation lives at fields2cover.github.io (opens in a new tab):
- Tutorials (opens in a new tab) — step through every module of the pipeline, in C++ and Python
- API reference (opens in a new tab)
- Migration guide v1 → v2 (opens in a new tab)
- FAQ (opens in a new tab)
Contributing
If you find an issue, a bug or have a proposal, open an issue (opens in a new tab). Pull requests are more than welcome; for major changes, please open an issue first to discuss what you would like to change, and make sure to update tests as appropriate. A one-click development environment is available:
Citing
Please cite this paper (opens in a new tab) when using Fields2Cover for your research:
@article{Mier_Fields2Cover_An_open-source_2023,
author={Mier, Gonzalo and Valente, João and de Bruin, Sytze},
journal={IEEE Robotics and Automation Letters},
title={Fields2Cover: An Open-Source Coverage Path Planning Library for Unmanned Agricultural Vehicles},
year={2023},
volume={8},
number={4},
pages={2166-2172},
doi={10.1109/LRA.2023.3248439}
}
License & credits
Fields2Cover is released under the BSD-3 license (opens in a new tab). It stands on the shoulders of GDAL (opens in a new tab), OR-tools (opens in a new tab), steering_functions (opens in a new tab), nlohmann/json (opens in a new tab), tinyxml2 (opens in a new tab), CubicSplineClass (opens in a new tab) and matplotplusplus (opens in a new tab). The project is (partly) financed by the Dutch Research Council (NWO).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.