PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
PhotonTrackedTargetSerde.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Photon Vision.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20// THIS FILE WAS AUTO-GENERATED BY ./photon-serde/generate_messages.py. DO NOT MODIFY
21
22#include <wpi/SymbolExports.h>
23
24// Include myself
27
28// Includes for dependant types
30#include <frc/geometry/Transform3d.h>
31#include <stdint.h>
32#include <vector>
33
34
35namespace photon {
36
37template <>
38struct WPILIB_DLLEXPORT SerdeType<PhotonTrackedTarget> {
39 static constexpr std::string_view GetSchemaHash() {
40 return "cc6dbb5c5c1e0fa808108019b20863f1";
41 }
42
43 static constexpr std::string_view GetSchema() {
44 return "float64 yaw;float64 pitch;float64 area;float64 skew;int32 fiducialId;int32 objDetectId;float32 objDetectConf;Transform3d bestCameraToTarget;Transform3d altCameraToTarget;float64 poseAmbiguity;TargetCorner:16f6ac0dedc8eaccb951f4895d9e18b6 minAreaRectCorners[?];TargetCorner:16f6ac0dedc8eaccb951f4895d9e18b6 detectedCorners[?];";
45 }
46
48 static void Pack(photon::Packet& packet, const photon::PhotonTrackedTarget& value);
49};
50
52
53} // namespace photon
A packet that holds byte-packed data to be sent over NetworkTables.
Definition Packet.h:66
Represents a tracked target within a pipeline.
Definition PhotonTrackedTarget.h:34
Definition Packet.h:42
Definition VisionEstimation.h:32
static void Pack(photon::Packet &packet, const photon::PhotonTrackedTarget &value)
static constexpr std::string_view GetSchema()
Definition PhotonTrackedTargetSerde.h:43
static photon::PhotonTrackedTarget Unpack(photon::Packet &packet)
static constexpr std::string_view GetSchemaHash()
Definition PhotonTrackedTargetSerde.h:39
Definition Packet.h:39