PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
TargetCornerSerde.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<TargetCorner> {
36 static constexpr std::string_view GetSchemaHash() {
37 return "16f6ac0dedc8eaccb951f4895d9e18b6";
38 }
39
40 static constexpr std::string_view GetSchema() {
41 return "float64 x;float64 y;";
42 }
43
45 static void Pack(photon::Packet& packet, const photon::TargetCorner& value);
46};
47
49
50} // namespace photon
A packet that holds byte-packed data to be sent over NetworkTables.
Definition Packet.h:66
Definition TargetCorner.h:25
Definition Packet.h:42
Definition VisionEstimation.h:32
static void Pack(photon::Packet &packet, const photon::TargetCorner &value)
static photon::TargetCorner Unpack(photon::Packet &packet)
static constexpr std::string_view GetSchemaHash()
Definition TargetCornerSerde.h:36
static constexpr std::string_view GetSchema()
Definition TargetCornerSerde.h:40
Definition Packet.h:39