Represents a pipeline result from a PhotonCamera.
More...
#include <photon/targeting/PhotonPipelineResult.h>
Represents a pipeline result from a PhotonCamera.
◆ PhotonPipelineResult() [1/6]
photon::PhotonPipelineResult::PhotonPipelineResult |
( |
| ) |
|
|
inline |
◆ PhotonPipelineResult() [2/6]
photon::PhotonPipelineResult::PhotonPipelineResult |
( |
Base && | data | ) |
|
|
inlineexplicit |
◆ PhotonPipelineResult() [3/6]
◆ PhotonPipelineResult() [4/6]
◆ PhotonPipelineResult() [5/6]
◆ PhotonPipelineResult() [6/6]
template<typename... Args>
photon::PhotonPipelineResult::PhotonPipelineResult |
( |
Args &&... | args | ) |
|
|
inlineexplicit |
◆ GetBestTarget()
Returns the best target in this pipeline result.
If there are no targets, this method will return null. The best target is determined by the target sort mode in the PhotonVision UI.
- Returns
- The best target of the pipeline result.
◆ GetLatency()
units::millisecond_t photon::PhotonPipelineResult::GetLatency |
( |
| ) |
const |
|
inline |
Returns the latency in the pipeline.
- Returns
- The latency in the pipeline.
◆ GetTargets()
const std::span< const PhotonTrackedTarget > photon::PhotonPipelineResult::GetTargets |
( |
| ) |
const |
|
inline |
Returns a reference to the vector of targets.
Returned in the order set by target sort mode.
- Returns
- A reference to the vector of targets.
◆ GetTimestamp()
units::second_t photon::PhotonPipelineResult::GetTimestamp |
( |
| ) |
const |
|
inline |
Returns the estimated time the frame was taken, This is much more accurate than using GetLatency()
- Returns
- The timestamp in seconds or -1 if this result was not initiated with a timestamp.
◆ HasTargets()
bool photon::PhotonPipelineResult::HasTargets |
( |
| ) |
const |
|
inline |
Returns whether the pipeline has targets.
- Returns
- Whether the pipeline has targets.
◆ MultiTagResult()
const std::optional< MultiTargetPNPResult > & photon::PhotonPipelineResult::MultiTagResult |
( |
| ) |
const |
|
inline |
Return the latest mulit-target result, as calculated on your coprocessor.
Be sure to check getMultiTagResult().estimatedPose.isPresent before using the pose estimate!
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SequenceID()
int64_t photon::PhotonPipelineResult::SequenceID |
( |
| ) |
const |
|
inline |
The number of non-empty frames processed by this camera since boot.
Useful to checking if a camera is alive.
◆ SetReceiveTimestamp()
void photon::PhotonPipelineResult::SetReceiveTimestamp |
( |
const units::second_t | timestamp | ) |
|
|
inline |
Sets the FPGA timestamp this result was Received by robot code.
◆ operator==
◆ HAS_WARNED
bool photon::PhotonPipelineResult::HAS_WARNED = false |
|
inlinestatic |
◆ ntReceiveTimestamp
units::microsecond_t photon::PhotonPipelineResult::ntReceiveTimestamp = -1_s |
The documentation for this class was generated from the following file: