Skip to content

Commit

Permalink
[docs] Fix usage of getTagPose (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty authored Sep 29, 2024
1 parent 30e930f commit 95236e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/docs/programming/photonlib/using-target-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ A `PhotonUtils` class with helpful common calculations is included within `Photo
.. code-block:: Java
// Calculate robot's field relative pose
Pose3d robotPose = PhotonUtils.estimateFieldToRobotAprilTag(target.getBestCameraToTarget(), aprilTagFieldLayout.getTagPose(target.getFiducialId()), cameraToRobot);
if (aprilTagFieldLayout.getTagPose(target.getFiducialId()).isPresent()) {
Pose3d robotPose = PhotonUtils.estimateFieldToRobotAprilTag(target.getBestCameraToTarget(), aprilTagFieldLayout.getTagPose(target.getFiducialId()).get(), cameraToRobot);
}
.. code-block:: C++
//TODO
Expand Down

0 comments on commit 95236e5

Please sign in to comment.