Package frc.robot.simulation
Class RaspberryPiSim
java.lang.Object
frc.robot.RaspberryPi
frc.robot.simulation.RaspberryPiSim
IO implementation for physics sim using PhotonVision simulator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all april tags from reef and station camera.Returns a list of all april tags from reef CV camera.Returns all april tags visible from Station CV Camera.void
Prints all raw apriltag data to console.void
update
(edu.wpi.first.math.geometry.Pose2d robotPoseMeters) Updates raspberry pi's simulated pose based on MapleSim pose.Methods inherited from class frc.robot.RaspberryPi
canSeeTags, getAprilTagsSingleCam, getAprilTagWithID, getClosestTag
-
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 classRaspberryPi
-
getAprilTags
Returns a list of all april tags from reef and station camera.- Overrides:
getAprilTags
in classRaspberryPi
- Returns:
- all april tags
-
getReefAprilTags
Returns a list of all april tags from reef CV camera.- Overrides:
getReefAprilTags
in classRaspberryPi
- Returns:
- all visible reef april tags.
-
getStationAprilTags
Returns all april tags visible from Station CV Camera.- Overrides:
getStationAprilTags
in classRaspberryPi
- 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 classRaspberryPi
- Parameters:
robotPoseMeters
- current pose
-