Add RobotPoseEstimator (#571)

RobotPoseEstimator can pick the most likely pose for the robot given a number of possible poses, using a number of different strategies. Examples are still WIP.
This commit is contained in:
Jack
2022-12-30 00:40:13 -06:00
committed by GitHub
parent 3a10f49b54
commit 550194152a
12 changed files with 1805 additions and 4 deletions

View File

@@ -67,11 +67,13 @@ class PhotonCamera {
*/
explicit PhotonCamera(const std::string_view cameraName);
virtual ~PhotonCamera() = default;
/**
* Returns the latest pipeline result.
* @return The latest pipeline result.
*/
PhotonPipelineResult GetLatestResult();
virtual PhotonPipelineResult GetLatestResult();
/**
* Toggles driver mode.
@@ -155,6 +157,10 @@ class PhotonCamera {
PhotonCamera::VERSION_CHECK_ENABLED = enabled;
}
// For use in tests
bool test = false;
PhotonPipelineResult testResult;
protected:
std::shared_ptr<nt::NetworkTable> mainTable;
std::shared_ptr<nt::NetworkTable> rootTable;