Package xbot.common.subsystems.vision
Class SimpleCamera
java.lang.Object
xbot.common.subsystems.vision.SimpleCamera
- Direct Known Subclasses:
AprilTagCamera
This class provides common base implementation for cameras on the robot.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleCamera
(CameraInfo cameraInfo, String prefix) Create a new SimpleCamera. -
Method Summary
Modifier and TypeMethodDescriptionGet the camera.getName()
Get the name of the camera.boolean
Check if the camera is working.
-
Field Details
-
camera
-
friendlyName
-
-
Constructor Details
-
SimpleCamera
Create a new SimpleCamera.- Parameters:
cameraInfo
- The information about the camera.
-
-
Method Details
-
getName
Get the name of the camera.- Returns:
- The name of the camera.
-
getCamera
Get the camera.- Returns:
- The camera.
-
isCameraWorking
public boolean isCameraWorking()Check if the camera is working.- Returns:
- True if the camera is working, false otherwise.
-