Class RaspberryPiSim

java.lang.Object
frc.robot.RaspberryPi
frc.robot.simulation.RaspberryPiSim

public class RaspberryPiSim extends RaspberryPi
IO implementation for physics sim using PhotonVision simulator.
  • Constructor Details

    • RaspberryPiSim

      public RaspberryPiSim()
      Creates a new RaspberryPiSim.
  • Method Details

    • printRawData

      public void printRawData()
      Prints all raw apriltag data to console.
      Overrides:
      printRawData in class RaspberryPi
    • getAprilTags

      public ArrayList<AprilTag> getAprilTags()
      Returns a list of all april tags from reef and station camera.
      Overrides:
      getAprilTags in class RaspberryPi
      Returns:
      all april tags
    • getReefAprilTags

      public ArrayList<AprilTag> getReefAprilTags()
      Returns a list of all april tags from reef CV camera.
      Overrides:
      getReefAprilTags in class RaspberryPi
      Returns:
      all visible reef april tags.
    • getStationAprilTags

      public ArrayList<AprilTag> getStationAprilTags()
      Returns all april tags visible from Station CV Camera.
      Overrides:
      getStationAprilTags in class RaspberryPi
      Returns:
      list of all april tags
    • update

      public void update(edu.wpi.first.math.geometry.Pose2d robotPoseMeters)
      Updates raspberry pi's simulated pose based on MapleSim pose.
      Overrides:
      update in class RaspberryPi
      Parameters:
      robotPoseMeters - current pose