Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Oct 22, 2023
1 parent b5d4bcf commit e4aff61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected CVPipelineResult process(Frame frame, ArucoPipelineSettings settings)
AprilTagPoseEstimate tagPoseEstimate = null;
// Do single-tag estimation when "always enabled" or if a tag was not used for multitag
if (settings.doSingleTargetAlways
|| !multiTagResult.fiducialIDsUsed.contains(Integer.valueOf(detection.getId()))) {
|| !multiTagResult.fiducialIDsUsed.contains(detection.getId())) {
var poseResult = singleTagPoseEstimatorPipe.run(detection);
sumPipeNanosElapsed += poseResult.nanosElapsed;
tagPoseEstimate = poseResult.output;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ public static List<PhotonTrackedTarget> simpleFromTrackedTargets(List<TrackedTar
}
{
var points = t.getTargetCorners();
for (int i = 0; i < points.size(); i++) {
detectedCorners.add(new TargetCorner(points.get(i).x, points.get(i).y));
for (Point point : points) {
detectedCorners.add(new TargetCorner(point.x, point.y));
}
}

Expand Down

0 comments on commit e4aff61

Please sign in to comment.