Class PipelineResult
java.lang.Object
io.github.roboblazers7617.limelight.PipelineResult
Limelight PipelineResult object, parsed from a Limelight's JSON results output.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[]
Botpose (MegaTag).double
The average area of the tags used to compute the botpose.double
The average distance between tags used to compute the botpose in meters.double
The maximum distance between tags used to compute the botpose in meters.double
The number of tags used to compute the botpose.double[]
Botpose (MegaTag, WPI Blue driverstation).double[]
Botpose (MegaTag, WPI Red driverstation).double[]
Error output from the JSON parser.double
The capture latency (milliseconds between the end of the exposure of the middle row to the beginning of the tracking loop).double
The latency introduced by parsing the JSON file.double
The targeting latency (milliseconds consumed by tracking loop this frame).double
The current Pipeline's index.double[]
MegaTag1 Standard Deviation.double[]
MegaTag2 Standard Deviation.Barcode pipeline outputs.Classifier pipeline outputs.Neural Detector pipeline outputs.Fiducial target pipeline outputs.Retroreflective pipeline outputs.double
Timestamp in milliseconds from Limelight boot.double
boolean
Are there valid targets in this result? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thebotpose
of this PipelineResult.Gets thebotpose_wpiblue
of this PipelineResult.Gets thebotpose_wpired
of this PipelineResult.Gets thebotpose
of this PipelineResult.Gets thebotpose_wpiblue
of this PipelineResult.Gets thebotpose_wpired
of this PipelineResult.
-
Field Details
-
error
Error output from the JSON parser. -
pipelineID
public double pipelineIDThe current Pipeline's index. -
latency_pipeline
public double latency_pipelineThe targeting latency (milliseconds consumed by tracking loop this frame). -
latency_capture
public double latency_captureThe capture latency (milliseconds between the end of the exposure of the middle row to the beginning of the tracking loop). -
latency_jsonParse
public double latency_jsonParseThe latency introduced by parsing the JSON file. -
timestamp_LIMELIGHT_publish
public double timestamp_LIMELIGHT_publishTimestamp in milliseconds from Limelight boot. -
timestamp_RIOFPGA_capture
public double timestamp_RIOFPGA_capture -
valid
public boolean validAre there valid targets in this result? -
botpose
public double[] botposeBotpose (MegaTag).- API Note:
- Array format is [x, y, z, roll, pitch, yaw (meters, degrees)]
-
botpose_wpired
public double[] botpose_wpiredBotpose (MegaTag, WPI Red driverstation).- API Note:
- Array format is [x, y, z, roll, pitch, yaw (meters, degrees)]
-
botpose_wpiblue
public double[] botpose_wpiblueBotpose (MegaTag, WPI Blue driverstation).- API Note:
- Array format is [x, y, z, roll, pitch, yaw (meters, degrees)]
-
botpose_tagcount
public double botpose_tagcountThe number of tags used to compute the botpose. -
botpose_span
public double botpose_spanThe maximum distance between tags used to compute the botpose in meters. -
botpose_avgdist
public double botpose_avgdistThe average distance between tags used to compute the botpose in meters. -
botpose_avgarea
public double botpose_avgareaThe average area of the tags used to compute the botpose. -
camerapose_robotspace
public double[] camerapose_robotspace -
targets_Retro
Retroreflective pipeline outputs. -
targets_Fiducials
Fiducial target pipeline outputs. -
targets_Classifier
Classifier pipeline outputs. -
targets_Detector
Neural Detector pipeline outputs. -
targets_Barcode
Barcode pipeline outputs. -
standardDeviations_MegaTag1
public double[] standardDeviations_MegaTag1MegaTag1 Standard Deviation.- API Note:
- Array format is [x, y, z, roll, pitch, yaw] (meters, degrees).
-
standardDeviations_MegaTag2
public double[] standardDeviations_MegaTag2MegaTag2 Standard Deviation.- API Note:
- Array format is [x, y, z, roll, pitch, yaw] (meters, degrees).
-
-
Constructor Details
-
PipelineResult
public PipelineResult()Creates a new PipelineResult with blank values.
-
-
Method Details
-
getBotPose3d
Gets thebotpose
of this PipelineResult. -
getBotPose3d_wpiRed
Gets thebotpose_wpired
of this PipelineResult.- Returns:
- The
botpose_wpired
of this PipelineResult, parsed into aPose3d
.
-
getBotPose3d_wpiBlue
Gets thebotpose_wpiblue
of this PipelineResult.- Returns:
- The
botpose_wpiblue
of this PipelineResult, parsed into aPose3d
.
-
getBotPose2d
Gets thebotpose
of this PipelineResult. -
getBotPose2d_wpiRed
Gets thebotpose_wpired
of this PipelineResult.- Returns:
- The
botpose_wpired
of this PipelineResult, parsed into aPose2d
.
-
getBotPose2d_wpiBlue
Gets thebotpose_wpiblue
of this PipelineResult.- Returns:
- The
botpose_wpiblue
of this PipelineResult, parsed into aPose2d
.
-