Package limelight.networktables
Class LimelightData
java.lang.Object
limelight.networktables.LimelightData
Data retrieval class for
Limelight-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringArrayEntryBarcodes read by theLimelight.protected DoubleArrayEntryPose3dobject representing the camera's position and orientation relative to the robot.protected NetworkTableEntryNeural Clasifier result class name.protected NetworkTableEntryPrimary neural detect result class name.protected NetworkTableNetworkTablefor theLimelightPipeline data from limelight.protected DoubleArrayEntryCustom Python script output data forLimelight.protected DoubleArrayEntryCustom Python script set data forLimelight.protected NetworkTableEntryRaw Neural Detector limelight.results from NetworkTables.protected NetworkTableEntryRaw AprilTag detection from NetworkTables.protected NetworkTableEntryThe limelight.resultsLimelightResultsJSON dataprotected com.fasterxml.jackson.databind.ObjectMapperObject mapper for limelight.results JSON.Target data from limelight. -
Constructor Summary
ConstructorsConstructorDescriptionLimelightData(Limelight camera) Construct theLimelightDataclass to retrieve read-only data. -
Method Summary
Modifier and TypeMethodDescriptionString[]Barcode data read by theLimelight.Gets the camera's 3D pose with respect to the robot's coordinate system.Gets the current neural classifier result class name.Gets the primary neural detector result class name.double[]Get the output of the custom python script running on theLimelight.Gets the latest raw neural detector limelight.results from NetworkTablesGets the latest raw fiducial/AprilTag detection limelight.results from NetworkTables.GetLimelightResultsfrom NetworkTables.voidsetPythonData(double[] outgoingData) Set the input for the custom python script running on theLimelight
-
Field Details
-
targetData
Target data from limelight. -
pipelineData
Pipeline data from limelight. -
limelightTable
NetworkTablefor theLimelight -
results
The limelight.resultsLimelightResultsJSON data -
rawfiducials
Raw AprilTag detection from NetworkTables. -
rawDetections
Raw Neural Detector limelight.results from NetworkTables. -
classifierClass
Neural Clasifier result class name. -
detectorClass
Primary neural detect result class name. -
camera2RobotPose3d
Pose3dobject representing the camera's position and orientation relative to the robot. -
barcodeData
Barcodes read by theLimelight. -
pythonScriptDataSet
Custom Python script set data forLimelight. -
pythonScriptData
Custom Python script output data forLimelight. -
resultsObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper resultsObjectMapperObject mapper for limelight.results JSON.
-
-
Constructor Details
-
LimelightData
Construct theLimelightDataclass to retrieve read-only data.- Parameters:
camera-Limelightto use.
-
-
Method Details
-
getPythonData
public double[] getPythonData()Get the output of the custom python script running on theLimelight.- Returns:
- Output Double Array of the custom python script running on the
Limelight.
-
setPythonData
public void setPythonData(double[] outgoingData) Set the input for the custom python script running on theLimelight- Parameters:
outgoingData- Double array for custom python script.
-
getBarcodeData
Barcode data read by theLimelight.- Returns:
- Barcode data as a string.
-
getCamera2Robot
Gets the camera's 3D pose with respect to the robot's coordinate system.- Returns:
Pose3dobject representing the camera's position and orientation relative to the robot
-
getClassifierClass
Gets the current neural classifier result class name.- Returns:
- Class name string from classifier pipeline
-
getDetectorClass
Gets the primary neural detector result class name.- Returns:
- Class name string from detector pipeline
-
getResults
GetLimelightResultsfrom NetworkTables.Exists only if LL GUI option "Output & Crosshair - Send JSON over NT?" is Yes
- Returns:
LimelightResultsif it exists.
-
getRawFiducials
Gets the latest raw fiducial/AprilTag detection limelight.results from NetworkTables.- Returns:
- Array of RawFiducial objects containing detection details
-
getRawDetections
Gets the latest raw neural detector limelight.results from NetworkTables- Returns:
- Array of RawDetection objects containing detection details
-