29#include <wpi/math/geometry/Pose3d.hpp>
84 int objDetClassId,
float objDetConf)
86 objDetClassId(objDetClassId),
87 objDetConf(objDetConf),
96 void SetPose(
const wpi::math::Pose3d& newPose) { pose = newPose; }
110 wpi::math::Pose3d
GetPose()
const {
return pose; }
151 return pose.Translation().Norm() < right.pose.Translation().Norm();
155 return wpi::units::math::abs(pose.Translation().X() -
156 other.
GetPose().Translation().X()) < 1_in &&
157 wpi::units::math::abs(pose.Translation().Y() -
158 other.
GetPose().Translation().Y()) < 1_in &&
159 wpi::units::math::abs(pose.Translation().Z() -
160 other.
GetPose().Translation().Z()) < 1_in &&
161 wpi::units::math::abs(pose.Rotation().X() -
162 other.
GetPose().Rotation().X()) < 1_deg &&
163 wpi::units::math::abs(pose.Rotation().Y() -
164 other.
GetPose().Rotation().Y()) < 1_deg &&
165 wpi::units::math::abs(pose.Rotation().Z() -
166 other.
GetPose().Rotation().Z()) < 1_deg &&
174 wpi::math::Pose3d pose;
Definition TargetModel.h:28
std::vector< wpi::math::Translation3d > GetFieldVertices(const wpi::math::Pose3d &targetPose) const
Definition TargetModel.h:79
bool GetIsPlanar() const
Definition TargetModel.h:107
Describes a vision target located somewhere on the field that your vision system can detect.
Definition VisionTargetSim.h:36
TargetModel GetModel() const
Returns the model describing this target's geometry.
Definition VisionTargetSim.h:117
VisionTargetSim(const wpi::math::Pose3d &pose, const TargetModel &model, int id)
Describes a fiducial tag located somewhere on the field that your vision system can detect.
Definition VisionTargetSim.h:60
float GetObjDetConf() const
Returns the object detection confidence of this target, or -1 if confidence is estimated from target ...
Definition VisionTargetSim.h:140
VisionTargetSim(const wpi::math::Pose3d &pose, const TargetModel &model)
Describes a retro-reflective/colored shape vision target located somewhere on the field that your vis...
Definition VisionTargetSim.h:45
int GetObjDetClassId() const
Returns the object detection class ID of this target, or -1 if not an object detection target.
Definition VisionTargetSim.h:132
VisionTargetSim(const wpi::math::Pose3d &pose, const TargetModel &model, int objDetClassId, float objDetConf)
Describes an object-detection vision target located somewhere on the field that your vision system ca...
Definition VisionTargetSim.h:83
void SetPose(const wpi::math::Pose3d &newPose)
Sets the pose of this target on the field.
Definition VisionTargetSim.h:96
wpi::math::Pose3d GetPose() const
Returns the pose of this target on the field.
Definition VisionTargetSim.h:110
int GetFiducialId() const
Returns the fiducial ID of this target, or -1 if not a fiducial target.
Definition VisionTargetSim.h:124
std::vector< wpi::math::Translation3d > GetFieldVertices() const
This target's vertices offset from its field pose.
Definition VisionTargetSim.h:146
bool operator==(const VisionTargetSim &other) const
Definition VisionTargetSim.h:154
void SetModel(const TargetModel &newModel)
Sets the model describing this target's geometry.
Definition VisionTargetSim.h:103
bool operator<(const VisionTargetSim &right) const
Definition VisionTargetSim.h:150
Definition VisionEstimation.h:30