Skip to content

Conversation

@Gold856
Copy link
Collaborator

@Gold856 Gold856 commented Oct 18, 2025

Description

This allows photon-targeting to be loaded using the same mechanism as the rest of the WPILib libraries, fixing issues with libraries not being able to find and load their dependent libraries.

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why
  • If this PR changes behavior or adds a feature, user documentation is updated
  • If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly
  • If this PR touches configuration, this is backwards compatible with settings back to v2025.3.2
  • If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated
  • If this PR addresses a bug, a regression test for it is added

@Gold856 Gold856 requested a review from a team as a code owner October 18, 2025 01:52
@github-actions github-actions bot added the backend Things relating to photon-core and photon-server label Oct 18, 2025
@Gold856 Gold856 marked this pull request as draft October 18, 2025 01:53
@Gold856 Gold856 force-pushed the photon-targeting-tool-plugin branch from 2742faf to 3d9b64a Compare October 18, 2025 01:53
@Gold856
Copy link
Collaborator Author

Gold856 commented Oct 18, 2025

Needs the loading to actually be changed.

@github-actions github-actions bot added the photonlib Things related to the PhotonVision library label Oct 18, 2025
@Gold856 Gold856 force-pushed the photon-targeting-tool-plugin branch from ee56037 to d09bf8b Compare October 19, 2025 00:22
@Gold856 Gold856 marked this pull request as ready for review October 19, 2025 00:26
@github-actions github-actions bot added the documentation Anything relating to https://docs.photonvision.org label Oct 19, 2025
@Gold856 Gold856 force-pushed the photon-targeting-tool-plugin branch from 9d15352 to 826764e Compare October 19, 2025 03:51
mcm001
mcm001 previously approved these changes Oct 20, 2025
Copy link
Contributor

@mcm001 mcm001 left a comment

Choose a reason for hiding this comment

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

Image

a jar built with shadowjar on windows works! I think this is sufficient for now, we can play with roborios once this hits main.

@Gold856
Copy link
Collaborator Author

Gold856 commented Oct 20, 2025

Confirmed to work on an Orange Pi, Windows 11 sim, and roboRIO. On a roboRIO, it'll crash with an IOException if photon-targeting can't be loaded.

@Gold856 Gold856 force-pushed the photon-targeting-tool-plugin branch from 826764e to 6880958 Compare October 20, 2025 04:59
@github-actions github-actions bot removed the documentation Anything relating to https://docs.photonvision.org label Oct 20, 2025
@Gold856 Gold856 force-pushed the photon-targeting-tool-plugin branch from 6880958 to 5d2e353 Compare October 20, 2025 05:06
@mcm001 mcm001 enabled auto-merge (squash) October 20, 2025 14:44
@mcm001 mcm001 disabled auto-merge October 20, 2025 14:44
@mcm001 mcm001 enabled auto-merge (squash) October 20, 2025 14:45
@mcm001 mcm001 merged commit 4f549ba into PhotonVision:main Oct 20, 2025
41 checks passed
@Gold856 Gold856 deleted the photon-targeting-tool-plugin branch October 22, 2025 16:13
mcm001 pushed a commit that referenced this pull request Dec 7, 2025
## Description

#2137 made it so `TestUtils.loadLibraries()` loads both WPILib and
photon-targeting, which is used in Main.java to load libraries, but it
left the separate photon-targeting load in Main. This removes the extra
library load, since it's covered by `TestUtils.loadLibraries()`.

## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2025.3.2
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
samfreund pushed a commit to samfreund/photonvision that referenced this pull request Dec 18, 2025
## Description

PhotonVision#2137 made it so `TestUtils.loadLibraries()` loads both WPILib and
photon-targeting, which is used in Main.java to load libraries, but it
left the separate photon-targeting load in Main. This removes the extra
library load, since it's covered by `TestUtils.loadLibraries()`.

## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2025.3.2
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
spacey-sooty pushed a commit to spacey-sooty/photonvision that referenced this pull request Dec 22, 2025
…tonVision#2137)

This allows photon-targeting to be loaded using the same mechanism as
the rest of the WPILib libraries, fixing issues with libraries not being
able to find and load their dependent libraries.

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [x] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2025.3.2
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server photonlib Things related to the PhotonVision library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants