Skip to content

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.


# Build wheel
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?

@Connor-Long0
Copy link
Author

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

Yeah, sure go for it!(sorry for late response)

@samfreund
Copy link
Member

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

Yeah, sure go for it!(sorry for late response)

I think Matt's intent was more asking if you would be able to do that. (Matt, correct me if I'm wrong)

@samfreund samfreund added enhancement New feature or request photonlib Things related to the PhotonVision library labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request photonlib Things related to the PhotonVision library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port PhotonUtils to photonlibpy
6 participants