Class Limelight
java.lang.Object
io.github.roboblazers7617.limelight.Limelight
An object that represents a physical Limelight.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PipelineDataCollator
ThePipelineDataCollator
used by this Limelight.final String
The hostname of the Limelight.final NetworkTable
TheNetworkTable
used by this Limelight.final LimelightSettings
TheLimelightSettings
of this Limelight. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thedataCollator
for this Limelight.getLimelightURLString
(String request) Gets a URL for the given request to this Limelight.Gets thenetworkTable
for this Limelight.Gets thesettings
for this Limelight.makePoseEstimator
(PoseEstimator.PoseEstimators estimator) Creates a newPoseEstimator
for this Limelight.void
setRobotOrientation
(Rotation3d rotation) Sets the pipeline's robot orientation input with the given rotation.void
Asynchronously takes a snapshot.
-
Field Details
-
name
The hostname of the Limelight. -
networkTable
TheNetworkTable
used by this Limelight. -
settings
TheLimelightSettings
of this Limelight. -
dataCollator
ThePipelineDataCollator
used by this Limelight.
-
-
Constructor Details
-
Limelight
Creates a new Limelight.- Parameters:
name
- The hostname of the Limelight.
-
-
Method Details
-
getNetworkTable
Gets thenetworkTable
for this Limelight.- Returns:
- The
networkTable
for this Limelight.
-
getSettings
Gets thesettings
for this Limelight.- Returns:
- The
settings
for this Limelight.
-
getDataCollator
Gets thedataCollator
for this Limelight.- Returns:
- The
dataCollator
for this Limelight.
-
setRobotOrientation
Sets the pipeline's robot orientation input with the given rotation.- Parameters:
rotation
- The robot rotation to set.
-
makePoseEstimator
Creates a newPoseEstimator
for this Limelight.- Parameters:
estimator
- Thepose estimator
to 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)
-