29#include <frc/geometry/Pose3d.h>
40 void SetPose(
const frc::Pose3d& newPose) { pose = newPose; }
42 frc::Pose3d
GetPose()
const {
return pose; }
53 return pose.Translation().Norm() < right.pose.Translation().Norm();
57 return units::math::abs(pose.Translation().X() -
58 other.
GetPose().Translation().X()) < 1_in &&
59 units::math::abs(pose.Translation().Y() -
60 other.
GetPose().Translation().Y()) < 1_in &&
61 units::math::abs(pose.Translation().Z() -
62 other.
GetPose().Translation().Z()) < 1_in &&
63 units::math::abs(pose.Rotation().X() -
64 other.
GetPose().Rotation().X()) < 1_deg &&
65 units::math::abs(pose.Rotation().Y() -
66 other.
GetPose().Rotation().Y()) < 1_deg &&
67 units::math::abs(pose.Rotation().Z() -
68 other.
GetPose().Rotation().Z()) < 1_deg &&
Definition TargetModel.h:28
std::vector< frc::Translation3d > GetFieldVertices(const frc::Pose3d &targetPose) const
Definition TargetModel.h:78
bool GetIsPlanar() const
Definition TargetModel.h:104
Definition VisionTargetSim.h:34
TargetModel GetModel() const
Definition VisionTargetSim.h:43
void SetPose(const frc::Pose3d &newPose)
Definition VisionTargetSim.h:40
float objDetConf
Definition VisionTargetSim.h:50
int fiducialId
Definition VisionTargetSim.h:47
std::vector< frc::Translation3d > GetFieldVertices() const
Definition VisionTargetSim.h:44
frc::Pose3d GetPose() const
Definition VisionTargetSim.h:42
int objDetClassId
Definition VisionTargetSim.h:49
VisionTargetSim(const frc::Pose3d &pose, const TargetModel &model, int id)
Definition VisionTargetSim.h:38
bool operator==(const VisionTargetSim &other) const
Definition VisionTargetSim.h:56
void SetModel(const TargetModel &newModel)
Definition VisionTargetSim.h:41
bool operator<(const VisionTargetSim &right) const
Definition VisionTargetSim.h:52
VisionTargetSim(const frc::Pose3d &pose, const TargetModel &model)
Definition VisionTargetSim.h:36
Definition VisionEstimation.h:32