Package org.team1126.robot.util
Class Vision
java.lang.Object
org.team1126.robot.util.Vision
Manages all of the robot's cameras.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnreadResults(List<TimestampedPose> poseHistory, edu.wpi.first.math.geometry.Pose2d odometryPose, double velocity) Gets unread results from all cameras.voidreset()Resets cached measurements utilized by the pose estimators for seeding.
-
Constructor Details
-
Vision
Create the vision manager.- Parameters:
cameras- Configurations for the robot's cameras.
-
-
Method Details
-
reset
public void reset()Resets cached measurements utilized by the pose estimators for seeding. It is recommended to call this method after resetting the robot's pose or rotation. -
getUnreadResults
public VisionMeasurement[] getUnreadResults(List<TimestampedPose> poseHistory, edu.wpi.first.math.geometry.Pose2d odometryPose, double velocity) Gets unread results from all cameras.- Parameters:
poseHistory- Robot pose estimates from the last robot cycle.odometryPose- The uncorrected odometry pose of the robot. Used for simulation.velocity- The directionless measured velocity of the robot in m/s.
-