Skip to content

Commit

Permalink
hopefully fixes == for VisionTargetSim
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Nov 26, 2023
1 parent 93dd14d commit 434baac
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ class VisionTargetSim {
other.GetPose().Translation().Y()) < 1_in &&
units::math::abs(pose.Translation().Z() -
other.GetPose().Translation().Z()) < 1_in &&
units::math::abs(pose.Rotation().Degrees() -
other.GetPose().Degrees()) < 1_deg &&
pose.model.GetIsPlanar() == other.GetModel().GetIsPlanar();
units::math::abs(pose.Rotation().X() -
other.GetPose().Rotation().X()) < 1_deg &&
units::math::abs(pose.Rotation().Y() -
other.GetPose().Rotation().Y()) < 1_deg &&
units::math::abs(pose.Rotation().Z() -
other.GetPose().Rotation().Z()) < 1_deg &&
model.GetIsPlanar() == other.GetModel().GetIsPlanar();
}

private:
Expand Down

0 comments on commit 434baac

Please sign in to comment.