open-navigation/opennav_coverage
Nav2 Compatible Complete Cover Task Server, Navigator, & BT Utils
What it solves
Farmers and field operators need robots to systematically cover an entire area (spraying, seeding, mowing). Manually planning these paths is tedious and error-prone, leading to missed spots or wasted overlap. This project automates that planning for ROS 2 robots. It handles two scenarios: open fields (where you just give the boundary) and fields with pre-existing rows (like tree farms) where the robot must follow those specific rows.
How it works
It wraps the Fields2Cover planning library as a "Task Server" inside the Nav2 robot navigation framework. You give it a field boundary (as a polygon or a GML file) or a set of annotated rows. It then computes, in stages: swaths (parallel strips to drive), a headland (a border strip for turning), a route (the order to drive the swaths), and a path (the actual connecting turns). It accepts both GPS and Cartesian coordinates. The output can be a simple path to follow directly, or a structured list of swaths and connections (useful for turning tools on/off). It is split into several packages: the main server, a row-based server, message definitions, behavior-tree nodes, a navigator plugin, and a demo.
Who it’s for
Developers and integrators building autonomous agricultural or field robots using ROS 2 and the Nav2 navigation stack. It's designed to feel familiar to anyone already using Nav2. It requires ROS 2 (Foxy or newer for the server, Iron or newer for the navigator plugin). It was developed with Bonsai Robotics for use in GPS-degraded environments.
Highlights
- Built on the Fields2Cover library, exposing its full coverage planning options (headland, swath, route, and path planning) as a Nav2 Task Server.
- Handles two distinct use cases: open-field polygons and pre-annotated rows (which don't need to be parallel or evenly spaced).
- Accepts both GPS and Cartesian coordinates, and can take field boundaries as GML files or direct polygon messages.
- Returns both a direct navigation path and a structured coverage path (ordered swaths with connecting turns), enabling tool-specific behaviors like lowering implements on swaths and raising them in turns.
- Highly configurable via launch parameters and per-request action messages, with options for swath angle, route type (boustrophedon, snake, spiral, custom), path type (Dubin, Reeds-Shepp), and more.
- Includes a "skip rows" feature to skip specific rows or swaths in the plan.
- Open-sourced by Open Navigation in partnership with Bonsai Robotics.
Related
- Project
- Project
- Project
- Project
- Project