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.voidPrints all raw apriltag data to console.voidupdate(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:
printRawDatain classRaspberryPi
-
getAprilTags
Returns a list of all april tags from reef and station camera.- Overrides:
getAprilTagsin classRaspberryPi- Returns:
- all april tags
-
getReefAprilTags
Returns a list of all april tags from reef CV camera.- Overrides:
getReefAprilTagsin classRaspberryPi- Returns:
- all visible reef april tags.
-
getStationAprilTags
Returns all april tags visible from Station CV Camera.- Overrides:
getStationAprilTagsin 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:
updatein classRaspberryPi- Parameters:
robotPoseMeters- current pose
-