SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
subzero::PhotonVisionEstimators Class Reference

Combines estimated poses from an arbitrary number of PhotonVision cameras and applies them to a Holonomic pose estimator. More...

#include <PhotonVisionEstimators.h>

Classes

class  PhotonCameraEstimator
 Represents a single camera. More...
 

Public Member Functions

 PhotonVisionEstimators (std::vector< PhotonCameraEstimator > &estms, Eigen::Matrix< double, 3, 1 > singleTagStdDevs, Eigen::Matrix< double, 3, 1 > multiTagStdDevs)
 
std::vector< photon::EstimatedRobotPose > GetPosesFromCamera (frc::Pose3d prevPose, photon::PhotonPoseEstimator &est, photon::PhotonCamera &camera, double maxAmbiguity=0.2)
 
void UpdateEstimatedGlobalPose (frc::SwerveDrivePoseEstimator< 4U > &estimator, bool test)
 Call in the drivetrain's Periodic method to update the estimated robot's position.
 
Eigen::Matrix< double, 3, 1 > GetEstimationStdDevs (photon::EstimatedRobotPose &pose, PhotonCameraEstimator &photonEst)
 

Detailed Description

Combines estimated poses from an arbitrary number of PhotonVision cameras and applies them to a Holonomic pose estimator.

Definition at line 21 of file PhotonVisionEstimators.h.

Constructor & Destructor Documentation

◆ PhotonVisionEstimators()

subzero::PhotonVisionEstimators::PhotonVisionEstimators ( std::vector< PhotonCameraEstimator > & estms,
Eigen::Matrix< double, 3, 1 > singleTagStdDevs,
Eigen::Matrix< double, 3, 1 > multiTagStdDevs )
inlineexplicit

Definition at line 37 of file PhotonVisionEstimators.h.

Member Function Documentation

◆ GetEstimationStdDevs()

Eigen::Matrix< double, 3, 1 > subzero::PhotonVisionEstimators::GetEstimationStdDevs ( photon::EstimatedRobotPose & pose,
PhotonCameraEstimator & photonEst )
inline

Definition at line 108 of file PhotonVisionEstimators.h.

◆ GetPosesFromCamera()

std::vector< photon::EstimatedRobotPose > subzero::PhotonVisionEstimators::GetPosesFromCamera ( frc::Pose3d prevPose,
photon::PhotonPoseEstimator & est,
photon::PhotonCamera & camera,
double maxAmbiguity = 0.2 )
inline

Definition at line 49 of file PhotonVisionEstimators.h.

◆ UpdateEstimatedGlobalPose()

void subzero::PhotonVisionEstimators::UpdateEstimatedGlobalPose ( frc::SwerveDrivePoseEstimator< 4U > & estimator,
bool test )
inline

Call in the drivetrain's Periodic method to update the estimated robot's position.

Parameters
estimator
test

Definition at line 88 of file PhotonVisionEstimators.h.


The documentation for this class was generated from the following file: