> For the complete documentation index, see [llms.txt](https://yall.yassrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yall.yassrobotics.com/api-reference/java-reference/java-reference.md).

# Overview

**Root package:** `limelight`

```java
import limelight.Limelight;
```

## Package Layout

| Package                                   | Contents                                                                                                   |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `limelight`                               | [`Limelight`](https://yall.yassrobotics.com/api-reference/java-reference/limelight.md) — the camera object |
| `limelight.networktables`                 | Settings, data access, pose estimation, JSON results, and geometry helpers                                 |
| `limelight.networktables.target`          | Typed 2D/3D target results: AprilTag, retroreflective, barcode                                             |
| `limelight.networktables.target.pipeline` | Typed neural pipeline results: classifier, detector                                                        |
| `limelight.results`                       | Raw NetworkTables detection structs and hardware/IMU/rewind telemetry                                      |

## Where to Start

Every use of YALL begins with one `Limelight` object per camera:

```java
Limelight limelight = new Limelight("limelight");
```

From there:

* [`getSettings()`](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-settings.md) configures the camera (LEDs, pipeline, crop, camera offset, IMU mode, robot orientation, ...)
* [`createPoseEstimator(EstimationMode)`](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-pose-estimator.md) returns a [`LimelightPoseEstimator`](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-pose-estimator.md) for MegaTag1/MegaTag2 field-relative pose
* [`getData()`](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-data.md) exposes raw fiducials, raw detections, barcodes, and Python script I/O
* [`getLatestResults()`](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-results.md) returns the full JSON `LimelightResults` for a frame, including every target type

## Reference

* [Limelight](https://yall.yassrobotics.com/api-reference/java-reference/limelight.md)
* NetworkTables
  * [LimelightSettings](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-settings.md)
  * [LimelightPoseEstimator](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-pose-estimator.md)
  * [PoseEstimate](https://yall.yassrobotics.com/api-reference/java-reference/networktables/pose-estimate.md)
  * [LimelightData](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-data.md)
  * [LimelightPipelineData](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-pipeline-data.md)
  * [LimelightTargetData](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-target-data.md)
  * [LimelightResults](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-results.md)
  * [LimelightUtils](https://yall.yassrobotics.com/api-reference/java-reference/networktables/limelight-utils.md)
  * [Orientation3d](https://yall.yassrobotics.com/api-reference/java-reference/networktables/orientation3d.md)
  * [AngularVelocity3d](https://yall.yassrobotics.com/api-reference/java-reference/networktables/angular-velocity3d.md)
  * [AngularAcceleration3d](https://yall.yassrobotics.com/api-reference/java-reference/networktables/angular-acceleration3d.md)
* Target Types
  * [AprilTagFiducial](https://yall.yassrobotics.com/api-reference/java-reference/target-types/apriltag-fiducial.md)
  * [RetroreflectiveTape](https://yall.yassrobotics.com/api-reference/java-reference/target-types/retroreflective-tape.md)
  * [Barcode](https://yall.yassrobotics.com/api-reference/java-reference/target-types/barcode.md)
  * [NeuralClassifier](https://yall.yassrobotics.com/api-reference/java-reference/target-types/neural-classifier.md)
  * [NeuralDetector](https://yall.yassrobotics.com/api-reference/java-reference/target-types/neural-detector.md)
* Results & Telemetry
  * [RawFiducial](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/raw-fiducial.md)
  * [RawDetection](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/raw-detection.md)
  * [IMUResults](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/imu-results.md)
  * [HardwareReport](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/hardware-report.md)
  * [HailoStats](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/hailo-stats.md)
  * [RewindStats](https://yall.yassrobotics.com/api-reference/java-reference/results-and-telemetry/rewind-stats.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://yall.yassrobotics.com/api-reference/java-reference/java-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
