VisionSystemBuilder

Builder for creating a VisionSystem with DSL syntax.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds the configured vision system.

Link copied to clipboard
fun config(block: VisionSystem.Config.() -> Unit)

Configures the vision system.

Link copied to clipboard
fun currentPoseSupplier(supplier: () -> Pose2d)

Sets the current pose supplier.

Link copied to clipboard
fun limelight(name: String, block: LimeModuleBuilder.() -> Unit)

Adds a Limelight camera.

Link copied to clipboard
fun photon(name: String, block: PhotonModuleBuilder.() -> Unit)

Adds a PhotonVision camera.

Link copied to clipboard
fun poseEstimator(callback: (Pose2d, Time, Matrix<N3, N1>) -> Unit)

Sets the pose estimator callback.