WPILibC++ 2024.3.2
AprilTagPoseEstimate.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <wpi/SymbolExports.h>
8
10
11namespace frc {
12
13/** A pair of AprilTag pose estimates. */
15 /** Pose 1. */
17
18 /** Pose 2. */
20
21 /** Object-space error of pose 1. */
22 double error1;
23
24 /** Object-space error of pose 2. */
25 double error2;
26
27 /**
28 * Gets the ratio of pose reprojection errors, called ambiguity. Numbers
29 * above 0.2 are likely to be ambiguous.
30 *
31 * @return The ratio of pose reprojection errors.
32 */
33 double GetAmbiguity() const;
34};
35
36} // namespace frc
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
Represents a transformation for a Pose3d in the pose's frame.
Definition: Transform3d.h:18
Definition: AprilTagPoseEstimator.h:15
A pair of AprilTag pose estimates.
Definition: AprilTagPoseEstimate.h:14
double GetAmbiguity() const
Gets the ratio of pose reprojection errors, called ambiguity.
Transform3d pose1
Pose 1.
Definition: AprilTagPoseEstimate.h:16
Transform3d pose2
Pose 2.
Definition: AprilTagPoseEstimate.h:19
double error2
Object-space error of pose 2.
Definition: AprilTagPoseEstimate.h:25
double error1
Object-space error of pose 1.
Definition: AprilTagPoseEstimate.h:22