/*
* Copyright (C) Photon Vision.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
// THIS std::FILE WAS AUTO-GENERATED BY ./photon-serde/generate_messages.py. DO
// NOT MODIFY
#include "photon/serde/PhotonTrackedTargetSerde.h"
namespace photon {
using StructType = SerdeType;
void StructType::Pack(Packet& packet, const PhotonTrackedTarget& value) {
packet.Pack(value.yaw);
packet.Pack(value.pitch);
packet.Pack(value.area);
packet.Pack(value.skew);
packet.Pack(value.fiducialId);
packet.Pack(value.objDetectId);
packet.Pack(value.objDetectConf);
packet.Pack(value.bestCameraToTarget);
packet.Pack(value.altCameraToTarget);
packet.Pack(value.poseAmbiguity);
packet.Pack>(value.minAreaRectCorners);
packet.Pack>(value.detectedCorners);
}
PhotonTrackedTarget StructType::Unpack(Packet& packet) {
return PhotonTrackedTarget{PhotonTrackedTarget_PhotonStruct{
.yaw = packet.Unpack(),
.pitch = packet.Unpack(),
.area = packet.Unpack(),
.skew = packet.Unpack(),
.fiducialId = packet.Unpack(),
.objDetectId = packet.Unpack(),
.objDetectConf = packet.Unpack(),
.bestCameraToTarget = packet.Unpack(),
.altCameraToTarget = packet.Unpack(),
.poseAmbiguity = packet.Unpack(),
.minAreaRectCorners = packet.Unpack>(),
.detectedCorners = packet.Unpack>(),
}};
}
} // namespace photon