PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
PhotonPipelineResultSerde.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
32#include <optional>
33#include <stdint.h>
34#include <vector>
35
36
37namespace photon {
38
39template <>
40struct WPILIB_DLLEXPORT SerdeType<PhotonPipelineResult> {
41 static constexpr std::string_view GetSchemaHash() {
42 return "4b2ff16a964b5e2bf04be0c1454d91c4";
43 }
44
45 static constexpr std::string_view GetSchema() {
46 return "PhotonPipelineMetadata:ac0a45f686457856fb30af77699ea356 metadata;PhotonTrackedTarget:cc6dbb5c5c1e0fa808108019b20863f1 targets[?];optional MultiTargetPNPResult:541096947e9f3ca2d3f425ff7b04aa7b multitagResult;";
47 }
48
50 static void Pack(photon::Packet& packet, const photon::PhotonPipelineResult& value);
51};
52
54
55} // namespace photon
A packet that holds byte-packed data to be sent over NetworkTables.
Definition Packet.h:66
Represents a pipeline result from a PhotonCamera.
Definition PhotonPipelineResult.h:37
Definition Packet.h:42
Definition VisionEstimation.h:32
static constexpr std::string_view GetSchemaHash()
Definition PhotonPipelineResultSerde.h:41
static photon::PhotonPipelineResult Unpack(photon::Packet &packet)
static void Pack(photon::Packet &packet, const photon::PhotonPipelineResult &value)
static constexpr std::string_view GetSchema()
Definition PhotonPipelineResultSerde.h:45
Definition Packet.h:39