PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
PnpResultSerde.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
29#include <frc/geometry/Transform3d.h>
30#include <stdint.h>
31
32
33namespace photon {
34
35template <>
36struct WPILIB_DLLEXPORT SerdeType<PnpResult> {
37 static constexpr std::string_view GetSchemaHash() {
38 return "ae4d655c0a3104d88df4f5db144c1e86";
39 }
40
41 static constexpr std::string_view GetSchema() {
42 return "Transform3d best;Transform3d alt;float64 bestReprojErr;float64 altReprojErr;float64 ambiguity;";
43 }
44
46 static void Pack(photon::Packet& packet, const photon::PnpResult& value);
47};
48
50
51} // namespace photon
A packet that holds byte-packed data to be sent over NetworkTables.
Definition Packet.h:66
Definition Packet.h:42
Definition VisionEstimation.h:32
Definition PnpResult.h:29
static void Pack(photon::Packet &packet, const photon::PnpResult &value)
static constexpr std::string_view GetSchemaHash()
Definition PnpResultSerde.h:37
static photon::PnpResult Unpack(photon::Packet &packet)
static constexpr std::string_view GetSchema()
Definition PnpResultSerde.h:41
Definition Packet.h:39