WPILibC++ 2024.1.1-beta-4
AprilTag.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/RawFrame.h>
8#include <wpi/SymbolExports.h>
9#include <wpi/json_fwd.h>
10
11#include "frc/geometry/Pose3d.h"
12
13namespace frc {
14
16 int ID;
17
19
20 /**
21 * Checks equality between this AprilTag and another object.
22 */
23 bool operator==(const AprilTag&) const = default;
24
27};
28
30void to_json(wpi::json& json, const AprilTag& apriltag);
31
33void from_json(const wpi::json& json, AprilTag& apriltag);
34
35} // namespace frc
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
namespace for Niels Lohmann
Definition: json.h:96
Represents a 3D pose containing translational and rotational elements.
Definition: Pose3d.h:21
Definition: AprilTagPoseEstimator.h:15
WPILIB_DLLEXPORT void from_json(const wpi::json &json, AprilTagFieldLayout &layout)
WPILIB_DLLEXPORT void to_json(wpi::json &json, const AprilTagFieldLayout &layout)
Definition: AprilTag.h:15
int ID
Definition: AprilTag.h:16
static wpi::RawFrame Generate36h11AprilTagImage(int id)
static wpi::RawFrame Generate16h5AprilTagImage(int id)
Pose3d pose
Definition: AprilTag.h:18
bool operator==(const AprilTag &) const =default
Checks equality between this AprilTag and another object.
Definition: RawFrame.h:47