ROS 2 Agriculture Message Definitions (ROS2-FARM Package)
ROS2-FARM is an open-source ROS 2 package providing standardized message definitions and interfaces specifically designed for agricultural robotics and smart farming systems. It extends the ROS 2 ecosystem with domain-specific data structures—such as crop health metrics, soil property readings, yield estimation, and farm equipment state—to enable interoperability among autonomous tractors, UAVs, ground robots, and farm management software. These messages follow ROS 2 IDL (Interface Definition Language) conventions and are compatible with DDS middleware for real-time, reliable field deployment.
📖 Overview
📑 Key Components
🎯 Applications
- ✓ Autonomous precision spraying with real-time crop stress feedback
- ✓ Multi-robot cooperative harvesting task allocation
- ✓ Digital twin synchronization between farm IoT sensors and ROS 2 simulation environments
📐 Key Formulas
Normalized Difference Vegetation Index (NDVI)
(NIR - Red) / (NIR + Red)
Calculates vegetation health index from near-infrared and red band reflectance values; used in CropHealth messages.
Volumetric Water Content (VWC) Estimation
VWC = a * (TDR_time)^b + c
Empirical calibration formula mapping time-domain reflectometry (TDR) sensor output to soil moisture percentage; referenced in SoilMoistureProfile messages.
Yield Prediction Error Margin
σ_yield = sqrt(Σ(w_i^2 * σ_i^2))
Propagation of uncertainty across weighted inputs (e.g., biomass, grain moisture, density) in YieldEstimate messages.