Skip to content

Commit

Permalink
[wpilibjExamples] Update AprilTag field load
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jan 19, 2023
1 parent e95e88f commit ee996b9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package edu.wpi.first.wpilibj.examples.differentialdriveposeestimator;

import edu.wpi.first.apriltag.AprilTagFieldLayout;
import edu.wpi.first.apriltag.AprilTagFields;
import edu.wpi.first.math.ComputerVisionUtil;
import edu.wpi.first.math.VecBuilder;
Expand Down Expand Up @@ -132,10 +131,7 @@ public Drivetrain(DoubleArrayTopic cameraToObjectTopic) {
m_cameraToObjectEntry = cameraToObjectTopic.getEntry(m_defaultVal);

try {
m_objectInField =
AprilTagFieldLayout.loadFromResource(AprilTagFields.k2022RapidReact.m_resourceFile)
.getTagPose(0)
.get();
m_objectInField = AprilTagFields.k2022RapidReact.loadFromResourceFile().getTagPose(0).get();
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException();
Expand Down

0 comments on commit ee996b9

Please sign in to comment.