23#include <wpi/units/time.hpp>
47 :
Base(std::move(other)),
50 Base::operator=(other);
56 Base::operator=(std::move(other));
60 template <
typename... Args>
62 :
Base{std::forward<Args>(args)...} {}
74 "WARNING: This PhotonPipelineResult object has no targets associated "
76 "Please check HasTargets() before calling this method. For more "
77 "information, please review the PhotonLib documentation at "
78 "http://docs.photonvision.org");
89 return wpi::units::microsecond_t{
static_cast<double>(
140 const std::span<const PhotonTrackedTarget>
GetTargets()
const {
Represents a pipeline result from a PhotonCamera.
Definition PhotonPipelineResult.h:34
void SetReceiveTimestamp(const wpi::units::second_t timestamp)
Sets the FPGA timestamp this result was Received by robot code.
Definition PhotonPipelineResult.h:125
auto & operator=(const PhotonPipelineResult &other)
Definition PhotonPipelineResult.h:49
const std::span< const PhotonTrackedTarget > GetTargets() const
Returns a reference to the vector of targets.
Definition PhotonPipelineResult.h:140
wpi::units::second_t GetTimestamp() const
Returns the estimated time the frame was taken, in the Time Sync Server's time base (nt::Now).
Definition PhotonPipelineResult.h:102
static bool HAS_WARNED
Definition PhotonPipelineResult.h:151
int64_t SequenceID() const
The number of non-empty frames processed by this camera since boot.
Definition PhotonPipelineResult.h:122
wpi::units::millisecond_t GetLatency() const
Returns the latency in the pipeline.
Definition PhotonPipelineResult.h:88
PhotonTrackedTarget GetBestTarget() const
Returns the best target in this pipeline result.
Definition PhotonPipelineResult.h:71
PhotonPipelineResult(PhotonPipelineResult &&other)
Definition PhotonPipelineResult.h:46
auto & operator=(PhotonPipelineResult &&other)
Definition PhotonPipelineResult.h:54
PhotonPipelineResult(PhotonPipelineResult &other)
Definition PhotonPipelineResult.h:44
PhotonPipelineResult(Base &&data)
Definition PhotonPipelineResult.h:39
friend bool operator==(PhotonPipelineResult const &, PhotonPipelineResult const &)=default
bool HasTargets() const
Returns whether the pipeline has targets.
Definition PhotonPipelineResult.h:133
wpi::units::microsecond_t ntReceiveTimestamp
Definition PhotonPipelineResult.h:149
PhotonPipelineResult(const PhotonPipelineResult &other)
Definition PhotonPipelineResult.h:42
PhotonPipelineResult()
Definition PhotonPipelineResult.h:38
const std::optional< MultiTargetPNPResult > & MultiTagResult() const
Return the latest mulit-target result, as calculated on your coprocessor.
Definition PhotonPipelineResult.h:114
PhotonPipelineResult(Args &&... args)
Definition PhotonPipelineResult.h:61
Represents a tracked target within a pipeline.
Definition PhotonTrackedTarget.h:31
Definition VisionEstimation.h:30
Definition PhotonPipelineResultStruct.h:40
std::vector< photon::PhotonTrackedTarget > targets
Definition PhotonPipelineResultStruct.h:42
photon::PhotonPipelineMetadata metadata
Definition PhotonPipelineResultStruct.h:41
std::optional< photon::MultiTargetPNPResult > multitagResult
Definition PhotonPipelineResultStruct.h:43