Class Limelight
java.lang.Object
io.github.roboblazers7617.limelight.Limelight
An object that represents a physical Limelight.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PipelineDataCollatorThePipelineDataCollatorused by this Limelight.final StringThe hostname of the Limelight.final NetworkTableTheNetworkTableused by this Limelight.final LimelightSettingsTheLimelightSettingsof this Limelight. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thedataCollatorfor this Limelight.getLimelightURLString(String request) Gets a URL for the given request to this Limelight.Gets thenetworkTablefor this Limelight.Gets thesettingsfor this Limelight.makePoseEstimator(PoseEstimator.PoseEstimators estimator) Creates a newPoseEstimatorfor this Limelight.voidsetRobotOrientation(Rotation3d rotation) Sets the pipeline's robot orientation input with the given rotation.voidAsynchronously takes a snapshot.
-
Field Details
-
name
The hostname of the Limelight. -
networkTable
TheNetworkTableused by this Limelight. -
settings
TheLimelightSettingsof this Limelight. -
dataCollator
ThePipelineDataCollatorused by this Limelight.
-
-
Constructor Details
-
Limelight
Creates a new Limelight.- Parameters:
name- The hostname of the Limelight.
-
-
Method Details
-
getNetworkTable
Gets thenetworkTablefor this Limelight.- Returns:
- The
networkTablefor this Limelight.
-
getSettings
Gets thesettingsfor this Limelight.- Returns:
- The
settingsfor this Limelight.
-
getDataCollator
Gets thedataCollatorfor this Limelight.- Returns:
- The
dataCollatorfor this Limelight.
-
setRobotOrientation
Sets the pipeline's robot orientation input with the given rotation.- Parameters:
rotation- The robot rotation to set.
-
makePoseEstimator
Creates a newPoseEstimatorfor this Limelight.- Parameters:
estimator- Thepose estimatorto use.- Returns:
- The created
PoseEstimator.
-
getLimelightURLString
Gets a URL for the given request to this Limelight.- Parameters:
request- The request string to use.- Returns:
- The URL for the request, or null if invalid.
-
snapshot
Asynchronously takes a snapshot.- Parameters:
snapshotName- The name to give to the snapshot.- See Also:
-
snapshotSynchronous(String)
-