-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulated Pose Estimation Only Works When In Motion #1405
Comments
photonvision/photon-lib/src/main/java/org/photonvision/PhotonPoseEstimator.java Lines 135 to 144 in 7271c95
photonvision/photon-lib/src/main/java/org/photonvision/PhotonPoseEstimator.java Lines 357 to 366 in 7271c95
This should be checking if the updated pose is different from the last, or that the timestamp is different. An empty estimate should only be sent if both of those conditions are false. One thing I'm not certain on is if the NT subscriber updates the timestamp for identical values: photonvision/photon-lib/src/main/java/org/photonvision/PhotonCamera.java Lines 182 to 185 in 7271c95
Your simulated camera has no noise added to it, which is causing the estimated pose while stationary to be completely stable. This probably wouldn't happen on a real robot. |
With NT4 - yes - there should be one publish operation per piece of info in the camera frame. Data can be identical, but timestamp will advance. |
Describe the bug
I'm not sure if this is intended, but when running simulated PhotonVision pose estimation, it only seems to be outputting poses when the robot is in motion. When it's stationary but still sees targets, the
Optional<EstimatedRobotPose>
starts returning as an empty optional.To Reproduce
Steps to reproduce the behavior:
isPresent
field underRealOutputs/vision
Screenshots / Videos
2024-08-30.09-11-28.mp4
Platform:
v2024.3.1
, no PV running on a co-processorAdditional context
I'm not completely sure this is a bug with PhotonVision, however I've seen another person with a similar issue, and I was asked by Matt to submit this.
The text was updated successfully, but these errors were encountered: