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

#include <photon/simulation/VisionSystemSim.h>

Public Member Functions

 VisionSystemSim (std::string visionSystemName)
 
std::optional< PhotonCameraSim * > GetCameraSim (std::string name)
 
std::vector< PhotonCameraSim * > GetCameraSims ()
 
void AddCamera (PhotonCameraSim *cameraSim, const frc::Transform3d &robotToCamera)
 
void ClearCameras ()
 
bool RemoveCamera (PhotonCameraSim *cameraSim)
 
std::optional< frc::Transform3d > GetRobotToCamera (PhotonCameraSim *cameraSim)
 
std::optional< frc::Transform3d > GetRobotToCamera (PhotonCameraSim *cameraSim, units::second_t time)
 
std::optional< frc::Pose3d > GetCameraPose (PhotonCameraSim *cameraSim)
 
std::optional< frc::Pose3d > GetCameraPose (PhotonCameraSim *cameraSim, units::second_t time)
 
bool AdjustCamera (PhotonCameraSim *cameraSim, const frc::Transform3d &robotToCamera)
 
void ResetCameraTransforms ()
 
bool ResetCameraTransforms (PhotonCameraSim *cameraSim)
 
std::vector< VisionTargetSimGetVisionTargets ()
 
std::vector< VisionTargetSimGetVisionTargets (std::string type)
 
void AddVisionTargets (const std::vector< VisionTargetSim > &targets)
 
void AddVisionTargets (std::string type, const std::vector< VisionTargetSim > &targets)
 
void AddAprilTags (const frc::AprilTagFieldLayout &layout)
 
void ClearVisionTargets ()
 
void ClearAprilTags ()
 
void RemoveVisionTargets (std::string type)
 
std::vector< VisionTargetSimRemoveVisionTargets (const std::vector< VisionTargetSim > &targets)
 
frc::Pose3d GetRobotPose ()
 
frc::Pose3d GetRobotPose (units::second_t timestamp)
 
void ResetRobotPose (const frc::Pose2d &robotPose)
 
void ResetRobotPose (const frc::Pose3d &robotPose)
 
frc::Field2d & GetDebugField ()
 
void Update (const frc::Pose2d &robotPose)
 
void Update (const frc::Pose3d &robotPose)
 

Constructor & Destructor Documentation

◆ VisionSystemSim()

photon::VisionSystemSim::VisionSystemSim ( std::string visionSystemName)
inlineexplicit

Member Function Documentation

◆ AddAprilTags()

void photon::VisionSystemSim::AddAprilTags ( const frc::AprilTagFieldLayout & layout)
inline

◆ AddCamera()

void photon::VisionSystemSim::AddCamera ( PhotonCameraSim * cameraSim,
const frc::Transform3d & robotToCamera )
inline

◆ AddVisionTargets() [1/2]

void photon::VisionSystemSim::AddVisionTargets ( const std::vector< VisionTargetSim > & targets)
inline

◆ AddVisionTargets() [2/2]

void photon::VisionSystemSim::AddVisionTargets ( std::string type,
const std::vector< VisionTargetSim > & targets )
inline

◆ AdjustCamera()

bool photon::VisionSystemSim::AdjustCamera ( PhotonCameraSim * cameraSim,
const frc::Transform3d & robotToCamera )
inline

◆ ClearAprilTags()

void photon::VisionSystemSim::ClearAprilTags ( )
inline

◆ ClearCameras()

void photon::VisionSystemSim::ClearCameras ( )
inline

◆ ClearVisionTargets()

void photon::VisionSystemSim::ClearVisionTargets ( )
inline

◆ GetCameraPose() [1/2]

std::optional< frc::Pose3d > photon::VisionSystemSim::GetCameraPose ( PhotonCameraSim * cameraSim)
inline

◆ GetCameraPose() [2/2]

std::optional< frc::Pose3d > photon::VisionSystemSim::GetCameraPose ( PhotonCameraSim * cameraSim,
units::second_t time )
inline

◆ GetCameraSim()

std::optional< PhotonCameraSim * > photon::VisionSystemSim::GetCameraSim ( std::string name)
inline

◆ GetCameraSims()

std::vector< PhotonCameraSim * > photon::VisionSystemSim::GetCameraSims ( )
inline

◆ GetDebugField()

frc::Field2d & photon::VisionSystemSim::GetDebugField ( )
inline

◆ GetRobotPose() [1/2]

frc::Pose3d photon::VisionSystemSim::GetRobotPose ( )
inline

◆ GetRobotPose() [2/2]

frc::Pose3d photon::VisionSystemSim::GetRobotPose ( units::second_t timestamp)
inline

◆ GetRobotToCamera() [1/2]

std::optional< frc::Transform3d > photon::VisionSystemSim::GetRobotToCamera ( PhotonCameraSim * cameraSim)
inline

◆ GetRobotToCamera() [2/2]

std::optional< frc::Transform3d > photon::VisionSystemSim::GetRobotToCamera ( PhotonCameraSim * cameraSim,
units::second_t time )
inline

◆ GetVisionTargets() [1/2]

std::vector< VisionTargetSim > photon::VisionSystemSim::GetVisionTargets ( )
inline

◆ GetVisionTargets() [2/2]

std::vector< VisionTargetSim > photon::VisionSystemSim::GetVisionTargets ( std::string type)
inline

◆ RemoveCamera()

bool photon::VisionSystemSim::RemoveCamera ( PhotonCameraSim * cameraSim)
inline

◆ RemoveVisionTargets() [1/2]

std::vector< VisionTargetSim > photon::VisionSystemSim::RemoveVisionTargets ( const std::vector< VisionTargetSim > & targets)
inline

◆ RemoveVisionTargets() [2/2]

void photon::VisionSystemSim::RemoveVisionTargets ( std::string type)
inline

◆ ResetCameraTransforms() [1/2]

void photon::VisionSystemSim::ResetCameraTransforms ( )
inline

◆ ResetCameraTransforms() [2/2]

bool photon::VisionSystemSim::ResetCameraTransforms ( PhotonCameraSim * cameraSim)
inline

◆ ResetRobotPose() [1/2]

void photon::VisionSystemSim::ResetRobotPose ( const frc::Pose2d & robotPose)
inline

◆ ResetRobotPose() [2/2]

void photon::VisionSystemSim::ResetRobotPose ( const frc::Pose3d & robotPose)
inline

◆ Update() [1/2]

void photon::VisionSystemSim::Update ( const frc::Pose2d & robotPose)
inline

◆ Update() [2/2]

void photon::VisionSystemSim::Update ( const frc::Pose3d & robotPose)
inline

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