Package frc8768.visionlib.multicam
Interface MultiCamVision
- All Known Implementing Classes:
PhotonMultiCam
public interface MultiCamVision
For Robots that want a joined vision system, say 4 cameras on 4 corners
TODO: Add methods for really fancy math and functions, such as multi-camera targeting/field recognition
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a camera to the vision systemvoid
changePipeline
(String camName, int index) Change the current pipeline for cameraedu.wpi.first.math.geometry.Transform3d
getTargetPose
(String camName) Get pose of target relative to RobotList
<?> Get targets for all camerasList
<?> getTargetsForCam
(String camName) Get targets from camera
-
Method Details
-
addCamera
Add a camera to the vision system- Parameters:
camName
- Name of the camera in associated systempos
- Transform relative to Robot center
-
getTargetsForCam
Get targets from camera- Returns:
- targets if any, null for none.
-
getTargets
List<?> getTargets()Get targets for all cameras- Returns:
- targets if any, null for none.
-
changePipeline
Change the current pipeline for camera- Parameters:
index
- Pipeline index, depends on your configuration.
-
getTargetPose
Get pose of target relative to Robot
-