samfreund
892e240b18
change theme
2025-05-09 12:44:31 -05:00
samfreund
8cf48bee57
update requirements.txt
2025-05-09 12:35:33 -05:00
samfreund
26f08a6fdf
switch to sphinx
2025-05-09 12:29:47 -05:00
samfreund
dc0985dfb5
fix docstrings style
2025-05-09 11:01:05 -05:00
samfreund
416e2f7607
update versions
2025-05-08 23:36:23 -05:00
samfreund
fa8b60fe27
convert to requirements.txt
2025-05-08 23:33:00 -05:00
Sam Freund
b22371d7c0
Merge branch 'main' into py-docs
2025-04-14 21:41:09 -05:00
Sam Freund
44893b14b0
Bump Wpiformat ( #1892 )
2025-04-14 22:00:18 +00:00
samfreund
0147a44100
remove source
2025-04-14 00:36:02 -05:00
samfreund
44b46cf117
yeah that's good enough
2025-04-13 23:29:32 -05:00
samfreund
3547d0584b
exclude generated files
2025-04-13 10:51:39 -05:00
samfreund
e522642a48
linting
2025-04-13 10:43:40 -05:00
Sam Freund
3cdda8a84e
Add instructions for excluding a file
2025-04-13 10:38:44 -05:00
samfreund
d1761d07e9
update to exclude packet.py
2025-04-13 10:22:10 -05:00
samfreund
eb85834180
add brand color
2025-04-13 08:09:17 -05:00
samfreund
358f5747ab
man I hate linting
2025-04-12 22:54:50 -05:00
samfreund
88a1e789ad
actually add the logo
2025-04-12 22:41:36 -05:00
samfreund
abc67bdd95
add logo
2025-04-12 22:37:18 -05:00
Sam Freund
05309b1e25
Update mkdocs.yml
2025-04-12 22:35:20 -05:00
samfreund
32e4f0029b
Merge branch 'py-docs' of github.com:photonvision/photonvision into py-docs
2025-04-12 22:30:08 -05:00
samfreund
34057f223d
autogen files
2025-04-12 22:29:41 -05:00
Sam Freund
55303ccd9c
Update index.md
2025-04-12 17:33:57 -05:00
Sam Freund
3c73b68ba3
Update index.md
2025-04-12 17:33:37 -05:00
samfreund
47b799a0ce
add docs for python
2025-04-12 17:12:13 -05:00
Sam Freund
30645803e6
chore: bump wpilib to 2025.3.2 and fix mypy errors ( #1819 )
2025-03-19 01:31:59 -04:00
Matt Morley
533f8c97fd
Add constrained solvePNP strategy ( #1682 )
...
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Jade Turner <spacey-sooty@proton.me >
2025-02-19 14:15:27 +08:00
Sam Freund
e97865166d
[build] Bump WPILib to 2025.3.1 ( #1785 )
2025-02-17 14:04:25 +08:00
David Vo
ab41d2d1ed
photonlibpy: Explicitly re-export ( #1737 )
2025-01-17 18:28:16 -08:00
David Vo
a08dc374c8
photonlibpy: License under MIT ( #1700 )
...
Everything under the `photon-lib` directory is intended to all be
licensed under MIT:
e40c8fbca0/photon-lib/.styleguide-license (L2)
Presumably we don't want to force teams to release their robot code
under GPL.
2025-01-13 12:00:09 -05:00
Jade
5f75619063
Bump python projects to 2025.2.1 ( #1705 )
...
Blocked on robotpy release
---------
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com >
2025-01-12 16:24:36 -05:00
DeltaDizzy
d487e1c466
Fix deprecation warnings in PhotonLib examples ( #1699 )
...
The following deprecation warnings have been fixed:
- `SwerveModuleState.optimize(desiredState, currentRotation);`, which is
now an instance method
- `AprilTagFields.kDefaultField.loadAprilTagLayoutField();`, which is
now `AprilTagFieldLayout.loadField(AprilTagFields.kDefaultField);`
WIP:
- [x] C++
- [x] Python
2025-01-11 23:30:24 -05:00
mythgarr
159b848234
[python] Fix PhotonPipelineMetadata constructor arg order ( #1698 )
...
Relates to https://github.com/PhotonVision/photonvision/pull/1578
2025-01-11 23:29:19 -05:00
David Vo
53e6890f20
photon-serde: Relicense generated files under MIT ( #1709 )
2025-01-11 16:55:55 -07:00
Jochem
cc740c92c9
Added constructor overload to PhotonCameraSim for AprilTagFieldLayout ( #1692 )
2025-01-08 11:43:46 -07:00
Chris Gerth
6c7a174424
Adding timeSyncServer for Python ( #1675 )
2025-01-03 12:23:27 -06:00
Jade
7c254ec5dc
Change from k2024Crescendo to kDefaultField for AprilTagFieldLayout ( #1667 )
...
This reduces the things we need to update each year
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2025-01-03 22:03:00 +08:00
Nolan Brown
b7a2636e97
[photon-lib] Fix sim tag ambiguity ( #1653 )
2024-12-29 17:43:55 -05:00
Jade
ffc4e06ac6
Move to main over master ( #1642 )
...
Resolves https://github.com/PhotonVision/photonvision/issues/251
---------
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
2024-12-20 09:24:52 -08:00
Craig Schardt
6a8d638853
Fix typehint problem with ndarrays ( #1631 )
...
mypy was inferring the wrong type for ndarrays in photonCameraSim.py.
This fixes the problem by adding typehints using numpy.typing.NDArray.
2024-12-09 05:21:37 +00:00
Craig Schardt
4997ad9115
Fix formating errors that are in master ( #1627 )
...
A few files with format mistakes were merged into master and they cause
spotless and wpiformat to fail. This PR fixes those files.
2024-12-06 22:21:05 +00:00
James Ward
1dbd2e5990
[python] Correct time units ( #1605 )
2024-11-28 16:12:52 +00:00
Lucien Morey
61552ad6ca
Tidy up of python autogenerated messages ( #1594 )
...
This fixes mostly formatting issues so there is no longer any diff with
things after rerunning the generation script. Yes, most of this can be
fixed by running wpiformat but that doesn't exist as a pre-commit hook
atm, so I think this is nicer.
It also removes any reference to the java encode/decode within the
python message gen
2024-11-21 04:43:33 +00:00
Lucien Morey
fa66ed866c
add file marker for type checking ( #1598 )
...
I think this is the correct way to do this based on my understanding of
the guide to making a [pep561 compliant
package](https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages )
and this example in
[black](https://github.com/psf/black/pull/1395/files ). Given that I get
all the type-checking info from a local installation, I don't know if
this is testable until it's published on Pypi.
resolves #1210
2024-11-21 04:43:05 +00:00
Lucien Morey
c536a1c312
add missing log and use logger over print ( #1596 )
...
This is closer to a port of the Java/C++ stuff and will mean we get a
more standard print output with the rest of the logging in the lib
2024-11-21 03:01:08 +00:00
James Ward
3a9d22c76b
Handle remote UUID mismatch properly ( #1590 )
...
Check for no response
Only throw if incorrect version, and not when missing
Resolves #1569
2024-11-18 21:28:07 -05:00
Lucien Morey
097e641789
[Python] remove opencv dependency for robot installations ( #1580 )
2024-11-16 18:26:07 -08:00
James Ward
f107c94d05
[python] Fix population of metadata ( #1578 )
2024-11-16 18:25:43 -08:00
Lucien Morey
04191efc51
sphinxify java docs for python code ( #1575 )
2024-11-15 18:01:33 -08:00
Lucien Morey
dfed7e3621
Break up masssive python overload hacks ( #1573 )
...
What it says on the tin. This is all stuff from our initial effort to
port the sim things. Right now it is coupled to #1557 because this fixes
things up in that. Lets merge that one before dealing with this one
2024-11-14 14:59:55 -08:00
Lucien Morey
c50c657193
Add Python test harness for openCVHelp class ( #1557 )
2024-11-14 11:10:08 -05:00