You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current vision implementation in the code base is scattered and needs a unified location to manage the vision system.
this should include many system the limelight is currently supporting by creating the supporting methods inside this new class
Vision
The RobotVison class should handle all things vision, this includes multiple cameras. This should include getting values from the different cameras, being able to trigger events on specific values and switching over to a supplier system where possible
Limelight is currently out of data and does not have full support for the fudical markers, we will need to implement the new changes to fully support the system, Investigation to an event based system to trigger actions may be warranted
File: RobotVision.java & Limelight.java
Location: src/main/java/frc/robot/utils/vision
Variables
Hashmap<String,Limelight> cameras
Limelight defaultCamera
Constructor Limelight... cameras
This should loop through all the cameras and use their table name as the key inside the hashmap,
the first camera passed in will be considered the defaultCamera
public Limelight getCamera(String key)
public Limelight getDefaultCamera()
public createTrigger<T>(String key, Consumer<T>, BooleanSupplier condition)
TODO - Will need to figure out possibly a wider implementation for this task, will need more thought on how to move forwards
public ShuffleboardLayout shuffleboard()
Tasks
Constructor
Getters
Limelight Updated
Shuffleboard
The text was updated successfully, but these errors were encountered:
@MahditS i just realized the 2 classes you made will not work properly. You do need an update function before getting the value else it will update once and that's during initialization then never update again. I would make a method that call getRaw which will pull from the NT and just have the other methods pull their specific values
The problem
The current vision implementation in the code base is scattered and needs a unified location to manage the vision system.
this should include many system the limelight is currently supporting by creating the supporting methods inside this new class
Vision
The
RobotVison
class should handle all things vision, this includes multiple cameras. This should include getting values from the different cameras, being able to trigger events on specific values and switching over to a supplier system where possibleLimelight
is currently out of data and does not have full support for the fudical markers, we will need to implement the new changes to fully support the system, Investigation to an event based system to trigger actions may be warrantedFile:
RobotVision.java
&Limelight.java
Location:
src/main/java/frc/robot/utils/vision
Variables
Hashmap<String,Limelight> cameras
Limelight defaultCamera
Constructor
Limelight... cameras
This should loop through all the cameras and use their table name as the key inside the hashmap,
the first camera passed in will be considered the
defaultCamera
public Limelight getCamera(String key)
public Limelight getDefaultCamera()
public createTrigger<T>(String key, Consumer<T>, BooleanSupplier condition)
TODO - Will need to figure out possibly a wider implementation for this task, will need more thought on how to move forwards
public ShuffleboardLayout shuffleboard()
Tasks
The text was updated successfully, but these errors were encountered: