mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
This reverts commit 6ff7b3e143. See #1351 for context
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <frc/Errors.h>
|
||||
#include <frc/geometry/Transform3d.h>
|
||||
#include <wpi/SmallVector.h>
|
||||
|
||||
@@ -139,12 +138,7 @@ class PhotonTrackedTarget {
|
||||
* reprojection error is the ambiguity, which is between 0 and 1.
|
||||
* @return The pose of the target relative to the robot.
|
||||
*/
|
||||
frc::Transform3d GetBestCameraToTarget() const {
|
||||
if (bestCameraToTarget == frc::Transform3d()) {
|
||||
FRC_ReportError(frc::warn::Warning, "3d mode is not enabled");
|
||||
}
|
||||
return bestCameraToTarget;
|
||||
}
|
||||
frc::Transform3d GetBestCameraToTarget() const { return bestCameraToTarget; }
|
||||
|
||||
/**
|
||||
* Get the transform that maps camera space (X = forward, Y = left, Z = up) to
|
||||
|
||||
Reference in New Issue
Block a user