.java file. There is no package manager, Gradle plugin, or vendor dependency JSON to install. All WPILib projects already include every dependency the library needs.
Add the file to your project
Download LimelightHelpers.java
Get the latest release from the GitHub releases page. Download
LimelightHelpers.java directly — you do not need to clone the repository.Place it in your project
Copy the file into your WPILib project at:This is the standard WPILib project structure generated by the VS Code extension or the WPILib project creator. The file’s
package frc.robot; declaration matches this location.Use it in your robot code
Because If you prefer an explicit import:
LimelightHelpers.java is in the same package as your robot code, you can call its static methods directly without an import:Robot.java
Robot.java
USB-connected cameras (Limelight 3A / 3G)
If your Limelight is connected via USB rather than Ethernet, callsetupPortForwardingUSB once during robotInit(). This sets up port forwarding through the roboRIO so the Limelight web interface and NetworkTables remain accessible over the robot’s main network connection.
Robot.java
1. Its web UI will be available on port 5811.
Dependencies
LimelightLib uses only classes already present in every WPILib project:| Dependency | Source |
|---|---|
edu.wpi.first.networktables | WPILib NetworkTables |
edu.wpi.first.math.geometry | WPILib geometry (Pose2d, Pose3d, etc.) |
edu.wpi.first.net.PortForwarder | WPILib networking utilities |
com.fasterxml.jackson | Bundled with WPILib |
build.gradle changes are needed.