PhotonVision C++ dev-v2025.0.0-beta-8-2-gbd1c5c03
Loading...
Searching...
No Matches
photon::PhotonCameraSim Class Reference

#include <photon/simulation/PhotonCameraSim.h>

Public Member Functions

 PhotonCameraSim (PhotonCamera *camera)
 
 PhotonCameraSim (PhotonCamera *camera, const SimCameraProperties &props)
 
 PhotonCameraSim (PhotonCamera *camera, const SimCameraProperties &props, double minTargetAreaPercent, units::meter_t maxSightRange)
 
PhotonCameraGetCamera ()
 
double GetMinTargetAreaPercent ()
 
double GetMinTargetAreaPixels ()
 
units::meter_t GetMaxSightRange ()
 
const cs::CvSource & GetVideoSimRaw ()
 
const cv::Mat & GetVideoSimFrameRaw ()
 
bool CanSeeTargetPose (const frc::Pose3d &camPose, const VisionTargetSim &target)
 
bool CanSeeCorner (const std::vector< cv::Point2f > &points)
 
std::optional< uint64_t > ConsumeNextEntryTime ()
 
void SetMinTargetAreaPercent (double areaPercent)
 
void SetMinTargetAreaPixels (double areaPx)
 
void SetMaxSightRange (units::meter_t range)
 
void EnableRawStream (bool enabled)
 
void EnableDrawWireframe (bool enabled)
 
void SetWireframeResolution (double resolution)
 
void EnabledProcessedStream (double enabled)
 
PhotonPipelineResult Process (units::second_t latency, const frc::Pose3d &cameraPose, std::vector< VisionTargetSim > targets)
 
void SubmitProcessedFrame (const PhotonPipelineResult &result)
 
void SubmitProcessedFrame (const PhotonPipelineResult &result, uint64_t ReceiveTimestamp)
 

Public Attributes

SimCameraProperties prop
 

Constructor & Destructor Documentation

◆ PhotonCameraSim() [1/3]

photon::PhotonCameraSim::PhotonCameraSim ( PhotonCamera * camera)
explicit

◆ PhotonCameraSim() [2/3]

photon::PhotonCameraSim::PhotonCameraSim ( PhotonCamera * camera,
const SimCameraProperties & props )

◆ PhotonCameraSim() [3/3]

photon::PhotonCameraSim::PhotonCameraSim ( PhotonCamera * camera,
const SimCameraProperties & props,
double minTargetAreaPercent,
units::meter_t maxSightRange )

Member Function Documentation

◆ CanSeeCorner()

bool photon::PhotonCameraSim::CanSeeCorner ( const std::vector< cv::Point2f > & points)

◆ CanSeeTargetPose()

bool photon::PhotonCameraSim::CanSeeTargetPose ( const frc::Pose3d & camPose,
const VisionTargetSim & target )

◆ ConsumeNextEntryTime()

std::optional< uint64_t > photon::PhotonCameraSim::ConsumeNextEntryTime ( )

◆ EnabledProcessedStream()

void photon::PhotonCameraSim::EnabledProcessedStream ( double enabled)
inline

◆ EnableDrawWireframe()

void photon::PhotonCameraSim::EnableDrawWireframe ( bool enabled)
inline

◆ EnableRawStream()

void photon::PhotonCameraSim::EnableRawStream ( bool enabled)
inline

◆ GetCamera()

PhotonCamera * photon::PhotonCameraSim::GetCamera ( )
inline

◆ GetMaxSightRange()

units::meter_t photon::PhotonCameraSim::GetMaxSightRange ( )
inline

◆ GetMinTargetAreaPercent()

double photon::PhotonCameraSim::GetMinTargetAreaPercent ( )
inline

◆ GetMinTargetAreaPixels()

double photon::PhotonCameraSim::GetMinTargetAreaPixels ( )
inline

◆ GetVideoSimFrameRaw()

const cv::Mat & photon::PhotonCameraSim::GetVideoSimFrameRaw ( )
inline

◆ GetVideoSimRaw()

const cs::CvSource & photon::PhotonCameraSim::GetVideoSimRaw ( )
inline

◆ Process()

PhotonPipelineResult photon::PhotonCameraSim::Process ( units::second_t latency,
const frc::Pose3d & cameraPose,
std::vector< VisionTargetSim > targets )

◆ SetMaxSightRange()

void photon::PhotonCameraSim::SetMaxSightRange ( units::meter_t range)
inline

◆ SetMinTargetAreaPercent()

void photon::PhotonCameraSim::SetMinTargetAreaPercent ( double areaPercent)
inline

◆ SetMinTargetAreaPixels()

void photon::PhotonCameraSim::SetMinTargetAreaPixels ( double areaPx)
inline

◆ SetWireframeResolution()

void photon::PhotonCameraSim::SetWireframeResolution ( double resolution)
inline

◆ SubmitProcessedFrame() [1/2]

void photon::PhotonCameraSim::SubmitProcessedFrame ( const PhotonPipelineResult & result)

◆ SubmitProcessedFrame() [2/2]

void photon::PhotonCameraSim::SubmitProcessedFrame ( const PhotonPipelineResult & result,
uint64_t ReceiveTimestamp )

Member Data Documentation

◆ prop

SimCameraProperties photon::PhotonCameraSim::prop

The documentation for this class was generated from the following file: