Skip to content
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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

Connor-Long0
Copy link

@Connor-Long0 Connor-Long0 commented Jan 18, 2025

Ported the Java PhotonUtils into Python, and ported the PhotonUtils to the vision test file.

Fixes #1738

@Connor-Long0 Connor-Long0 requested a review from a team as a code owner January 18, 2025 21:39

@staticmethod
def estimateFieldToRobotAprilTag(cameraToTarget : Transform3d, fieldRelativeTagPose : Pose3d, cameraToRobot : Transform3d):
return fieldRelativeTagPose.__add__(cameraToTarget.inverse()).__add__(cameraToRobot)
Copy link
Contributor

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

Copy link
Author

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.

python3 setup.py bdist_wheel
python setup.py bdist_wheel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did this change?

Copy link
Author

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.

@mcm001
Copy link
Contributor

mcm001 commented Feb 1, 2025

Can we add unit tests for all the new functions you've added as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port PhotonUtils to photonlibpy
5 participants