Spectrum3847 / 2024-SpectrumSim

Simultation Branch for Spectrum3847
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Limelight + PhotonVisionSim integration #4

Closed allengregoryiv closed 1 month ago

allengregoryiv commented 2 months ago

How do we use limelight on the real robot, and photonvision sim when we are simulation?

Configure them both using the same config file (camera locations, field of views, etc.)

allengregoryiv commented 1 month ago

Robot will have a VisionSystem Class that VisionSystem will have multiple Limelight objects in an array, each with a config. During simulation, it will create photoncameras and simcameras to simulate the limelight.

Still need to decide how the VisionSystem and Swerve share information for the poseEstimator. Possibly a third class that consumes methods from both of them.