PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
263 stars 181 forks source link

PhotonPoseEstimator doesn't correctly load OpenCV libraries before using MULTI_TAG_PNP_ON_RIO strategy #1177

Open oh-yes-0-fps opened 8 months ago

oh-yes-0-fps commented 8 months ago

When using the PhotonPoseEstimator to estimate the pose using a camera, if your primary strategy is multi-tag on RIO there will be a crash when seeing multiple tags.

This was discussed in Discord and was concluded that OpenCV was only being loaded in simulation and not on the real robot.

image (1)

mcm001 commented 8 months ago

Take a look at how OpencvHelp loads it in sim. We should do this the first time the on coproc multi tag runs.