> 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/readme.md). Agents can also search and read this documentation through its [MCP server](https://yall.yassrobotics.com/~gitbook/mcp).

# Yet Another Localization Library

Yet Another Localization Library: one camera library for PhotonVision, Limelight and Synapse on FRC robots, with simulation for all three

**YALL** helps an FRC robot use its cameras to know where it is on the field and to find targets. It works with **PhotonVision**, **Limelight** and **Synapse** cameras, and your code reads all of them the same way.

![A robot drives a figure of eight. The red wheels-only path drifts away from the black true path, while the blue path with cameras stays on it.](https://4117681441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGIEErtt9pg5eE58xCW6z%2Fuploads%2Fgit-blob-042d768cee9970c419c820a8a32388556e7a9c45%2Fvision-corrects-odometry.gif?alt=media)

The black line is where a simulated robot really drove. Red is where it thinks it is from its wheels alone: it drifts. Blue adds three cameras through YALL and stays on track.

* **Works with every camera:** PhotonVision, Limelight and Synapse cameras, read the same way.
* **Test without a robot:** in simulation, YALL pretends to be each camera, using the published specs of every [Limelight](https://limelightvision.io/collections/products), the [Luma P1](https://luma.vision/products/p1) and [P2](https://luma.vision/products/luma-p2), the [ThriftyCam](https://www.thethriftybot.com/products/thriftycam), [Thriftiest Cam](https://www.thethriftybot.com/products/thriftiest-cam), [Arducam OV9281](https://andymark.com/products/arducam-camera) and [AndyMark ELP fisheye camera](https://andymark.com/products/elp-fisheye-lens-camera).
* **Throws out bad guesses:** a pose filter rejects camera guesses that can't be right, says how much to trust the rest, and counts what it threw out and why.
* **Many cameras, one robot:** feed every camera's guesses to your pose estimator with `addVisionMeasurement`, each with its own timestamp and trust.
* **Ready to run:** [example robots](https://yall.yassrobotics.com/documentation/example-robots), including YAGSL swerve drives on Commands v2 and v3, run in simulation.
* **Nothing hidden:** you can still reach each camera maker's own library.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-book" style="color:$primary;">:book:</i></h4></td><td><strong>Documentation</strong></td><td>Tutorials, how-to guides, tuning, and explanations for using YALL on your robot.</td><td><a href="https://yall.yassrobotics.com/documentation/">Documentation</a></td></tr><tr><td><h4><i class="fa-terminal" style="color:$primary;">:terminal:</i></h4></td><td><strong>API Reference</strong></td><td>Every class, field, and method, organized by package.</td><td><a href="https://yall.yassrobotics.com/api-reference/">API Reference</a></td></tr><tr><td><h4><i class="fa-github" style="color:$primary;">:github:</i></h4></td><td><strong>Source</strong></td><td>Source code, issues, and releases.</td><td><a href="https://github.com/Yet-Another-Software-Suite/YALL">https://github.com/Yet-Another-Software-Suite/YALL</a></td></tr></tbody></table>

## Install

YALL works with WPILib 2027. Add these vendordeps (libraries) in WPILib VS Code with **WPILib: Manage Vendor Libraries**:

1. YALL: `https://Yet-Another-Software-Suite.github.io/YALL/yall.json`
2. PhotonLib, which YALL simulates with.
3. WPILib's **CameraServer** and **AprilTag**, which come with WPILib.
4. Your cameras' own libraries: LimelightLib 2 for Limelights, SynapseLib for Synapse.

The Documentation section's **How do I install YALL?** page walks through each one.

## Quick example

One camera, in `Robot.java`. This works the same with Commands v2 (`TimedRobot`) and Commands v3 (`OpModeRobot`):

```java
private final VisionCamera camera =
    new PhotonVisionWrapper(  // or LimelightWrapper / SynapseWrapper
        new PhotonCamera("front"),
        new VisionCameraConfig()
            .withCameraModel(CameraModel.ARDUCAM_OV9281)    // which camera it is
            .withRobotToCamera(Inches.of(12), Inches.zero(), Inches.of(10),
                               Degrees.zero(), Degrees.of(-15), Degrees.zero())); // where it sits

@Override
public void robotPeriodic() {
  camera.setRobotOrientation(poseEstimator.getEstimatedPosition().getRotation());
  camera.update();
  camera.addVisionMeasurements(poseEstimator);
}

@Override
public void simulationPeriodic() {
  VisionSim.getDefault().update(simulatedTruePose);
}
```

## Part of Yet Another Software Suite

YALL is one of several FRC libraries from **Yet Another Software Suite**, alongside [YAGSL](https://github.com/Yet-Another-Software-Suite/YAGSL) (swerve drive) and [YAMS](https://github.com/Yet-Another-Software-Suite/YAMS) (mechanisms).


---

# 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/readme.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.
