PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
PhotonPipelineMetadataSerde.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 <stdint.h>
30
31
32namespace photon {
33
34template <>
35struct WPILIB_DLLEXPORT SerdeType<PhotonPipelineMetadata> {
36 static constexpr std::string_view GetSchemaHash() {
37 return "ac0a45f686457856fb30af77699ea356";
38 }
39
40 static constexpr std::string_view GetSchema() {
41 return "int64 sequenceID;int64 captureTimestampMicros;int64 publishTimestampMicros;int64 timeSinceLastPong;";
42 }
43
45 static void Pack(photon::Packet& packet, const photon::PhotonPipelineMetadata& value);
46};
47
49
50} // namespace photon
A packet that holds byte-packed data to be sent over NetworkTables.
Definition Packet.h:66
Definition PhotonPipelineMetadata.h:25
Definition Packet.h:42
Definition VisionEstimation.h:32
static constexpr std::string_view GetSchema()
Definition PhotonPipelineMetadataSerde.h:40
static photon::PhotonPipelineMetadata Unpack(photon::Packet &packet)
static constexpr std::string_view GetSchemaHash()
Definition PhotonPipelineMetadataSerde.h:36
static void Pack(photon::Packet &packet, const photon::PhotonPipelineMetadata &value)
Definition Packet.h:39