-
Notifications
You must be signed in to change notification settings - Fork 222
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
Ported PhotonUtils into Python #1739
base: main
Are you sure you want to change the base?
Ported PhotonUtils into Python #1739
Conversation
|
||
@staticmethod | ||
def estimateFieldToRobotAprilTag(cameraToTarget : Transform3d, fieldRelativeTagPose : Pose3d, cameraToRobot : Transform3d): | ||
return fieldRelativeTagPose.__add__(cameraToTarget.inverse()).__add__(cameraToRobot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calling add feels wrong - why doesn't + work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this has been fixed, let me know if otherwise.
photon-lib/py/buildAndTest.sh
Outdated
python3 setup.py bdist_wheel | ||
python setup.py bdist_wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be resolved, reverted it back to python3.
…feat/1738_cdl_photonUtils2025
…ptacon/photonvision into feat/1738_cdl_photonUtils2025 pulling parent changes
…ptacon/photonvision into feat/1738_cdl_photonUtils2025
…ptacon/photonvision into feat/1738_cdl_photonUtils2025
…ptacon/photonvision into feat/1738_cdl_photonUtils2025
Can we add unit tests for all the new functions you've added as well? |
Ported the Java PhotonUtils into Python, and ported the PhotonUtils to the vision test file.
Fixes #1738