PhotonVision C++ dev-v2025.3.1-2-gf92cf62a
Loading...
Searching...
No Matches
PhotonTrackedTargetSerde.h
Go to the documentation of this file.
1/*
2 * MIT License
3 *
4 * Copyright (c) PhotonVision
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24
25#pragma once
26
27// THIS FILE WAS AUTO-GENERATED BY ./photon-serde/generate_messages.py. DO NOT MODIFY
28
29#include <wpi/SymbolExports.h>
30
31// Include myself
34
35// Includes for dependant types
37#include <frc/geometry/Transform3d.h>
38#include <stdint.h>
39#include <vector>
40
41
42namespace photon {
43
44template <>
45struct WPILIB_DLLEXPORT SerdeType<PhotonTrackedTarget> {
46 static constexpr std::string_view GetSchemaHash() {
47 return "cc6dbb5c5c1e0fa808108019b20863f1";
48 }
49
50 static constexpr std::string_view GetSchema() {
51 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[?];";
52 }
53
55 static void Pack(photon::Packet& packet, const photon::PhotonTrackedTarget& value);
56};
57
59
60} // 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:50
static photon::PhotonTrackedTarget Unpack(photon::Packet &packet)
static constexpr std::string_view GetSchemaHash()
Definition PhotonTrackedTargetSerde.h:46
Definition Packet.h:39