Gold856
152b4391b8
Remove unnecessary symbol exclusions ( #1542 )
2024-11-09 22:09:14 -08:00
Jade
d8de4a7863
[build] Update wpiformat to 2024.45 ( #1545 )
...
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
2024-11-10 13:42:16 +08:00
Matt
14f7155a23
[TSP] Move Bind() to Start ( #1538 )
...
Fixes UB with static init. Turns out starting threads in static init doesn't work on windows.
2024-11-09 17:35:38 -05:00
Lucien Morey
d188c37466
Fix missing vars and catch bad shim ( #1541 )
...
I made a mistake when cherry-picking things into #1534 . Fixing it also
prompted me to regenerate message things without thinking even though it
wasn't needed here but it helped me catch an issue with a bad shim. I
must not have saved it properly on my computer and missed it before
review.
2024-11-09 17:32:35 -05:00
Lucien Morey
14fcc5d485
generate packing for python messages ( #1535 )
...
Generate packet serialization in Python, too.
2024-11-09 13:08:45 -05:00
Lucien Morey
1d8d934a8a
Enable Python tests, standardise variable spelling and fix arg checking ( #1533 )
...
I found these with a quick find-and-replace and checked against the inbuilt Python type checking. I am away from my robot and can't really
confirm there are no flow-on effects. There are no other active usages of the bad casing in the Python code, so we should be good. The generated serde messages already use this casing, so we don't need to update there.
2024-11-09 08:08:57 +08:00
Lucien Morey
bdb2949b4b
Stop type hinting members as optional in PhotonTrackedTarget ( #1539 )
...
List types should never be optional if sent to NT because an empty list conveys the same
thing.
The equivalent C++ struct takes the same approach with empty vectors rather than an optional vector.
2024-11-09 07:58:56 +08:00
Gold856
04ec99f17a
Add license to jars ( #1530 )
...
Fixes GPL violation, the license has been missing since 2024.
This also puts licenses in as many JARs and native library archives as possible (for good measure.)
2024-11-08 09:10:14 +08:00
Lucien Morey
150561abf2
Add missing var to dataclass ( #1534 )
2024-11-07 18:31:21 -05:00
Matt
fc8ecac376
Create TSP Server in C++ photonlib ( #1516 )
...
Automatically starts a TCP server in C++. Also adds warnings to Python.
2024-11-01 23:32:38 -07:00
Jade
75e2498f53
Fix typos ( #1508 )
...
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
2024-11-01 23:51:16 -04:00
Matt
7a4ea3dd56
Assert that version checking won't throw on startup ( #1512 )
...
# Overview
Previously if the coproc came up later, getProperty would return the
string literal "null", which made us print the BFW. Add tests to make
sure that we don't do that anymore by rebooting a sim coproc +
robot in a combination of different orders.
2024-11-01 23:50:21 -04:00
Matt
37aaa49b32
Create timesync JNI for testing client ( #1433 )
2024-10-31 08:27:19 -07:00
Cameron (3539)
937bafa8e2
Bump to WPILib 2025 Beta 1 & remove C++ protobuf ( #1484 )
...
Remove C++ protobuf support until
https://github.com/wpilibsuite/allwpilib/issues/7250 is addressed.
Developers should upgrade to wpilib vscode 2025 beta 1.
---------
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2024-10-31 02:59:39 -04:00
Matt
7da2ec1948
Fix PhotonCamera typestring checks ( #1480 )
...
Previously NT would quietly drop readQueue changes.
2024-10-20 22:21:24 -07:00
Matt
a0c85fc95f
Create photon-targeting-JNI framework ( #1428 )
...
Initial framework for adding JNI libraries. Auto generated JNI headers and sticks native libraries into the JAR (and adds to class path for testing)
2024-09-23 22:44:09 -04:00
Matt
f33218c49c
Add message UUID and type names to hash and message defintion ( #1409 )
2024-09-22 22:27:13 -04:00
Cameron (3539)
546058593e
Roll Back to 2024.3.2 ( #1423 )
...
Roll back to 2024.3.2 to get some good testing on actual robots.
2024-09-15 20:01:11 -04:00
Chris Gerth
9e6a066561
Examples Clean-Up ( #1408 )
2024-09-15 00:10:02 -04:00
Matt
169595e56e
Auto-generate packet dataclasses with Jinja ( #1374 )
2024-08-31 13:44:19 -04:00
Matt
738e3646f7
Photonlibpy - Best Target Function #1223 ( #1406 )
...
Supercedes https://github.com/PhotonVision/photonvision/pull/1223
---------
Co-authored-by: vladb <vlad.bondar@frc5113.com >
2024-08-31 12:30:09 -04:00
Matt
67463a020a
Use ReadQueue for PhotonCamera timestamps ( #1316 )
...
This removes the extra GetLastChange call to keep everything properly
atomic.
Closes #1303
2024-08-04 14:23:46 -04:00
Matt
974a926e75
Run wpiformat ( #1379 )
2024-08-02 11:57:34 -04:00
Matt
655909cc84
Create combine job and offline vendordep ZIP ( #1343 )
...
* Create combine job
* Update build.yml
* Bump max workers in photonlib
* Oops
* actually kill entirely
* Maybe fix test
* Don't run tests
* Update OpenCVTest.java
* Update build.yml
* Use upload-artifact@v4
* Update build.yml
* Update build.yml
2024-06-10 20:37:01 -05:00
Matt
5289948b83
Add photon.pb.h/PhotonVersion to cpp headers zip & create combined sources zip ( #1335 )
...
Combined sources zip is useful for robotpy to build both targeting & lib in the same build
2024-06-09 17:18:57 -04:00
Jade
e34b114669
Change default AprilTag family to 36h11 ( #1333 )
...
Change default AprilTag family to 36h11
Resolves https://github.com/PhotonVision/photonvision/issues/1226
2024-05-30 20:30:40 -04:00
Matt
19b4802094
Allow opencv8 distortion model in PhotonCamera ( #1317 )
...
We previously assumed only OpenCV5 but mrcal uses opencv8
2024-05-29 17:28:35 -04:00
Matt
fcca858a37
Update maven URL to reposilite ( #1330 )
...
Also bumps to new builds of artifacts (NFC)
2024-05-29 12:29:08 -05:00
Matt
98633e9150
Bump wpilib to latest dev ( #1327 )
2024-05-26 14:02:07 -05:00
Matt
ed08e2a78f
Move PhotonVersion to C++ file ( #949 )
...
This was supposed to speed up incremental compilation, but not sure it actually does. It's better form tm tho and fixes a robotpy-wrapper weirdness
2024-05-24 23:22:31 -04:00
Drew Williams
74a051d721
[PhotonLib C++] Fix SetVersionCheckEnabled to actually disable version checking ( #1323 )
...
* change verifyversion to use member variable
* Revert "change verifyversion to use member variable"
This reverts commit 4439839c8f .
* Removed inline specifier for versioncheck variable
---------
Co-authored-by: Drew Williams <DrewW@iARx.com >
2024-05-19 20:36:44 -04:00
Matt
713fad6f6b
Allow file uploads of any size and better report active cameras in PhotonCamera error print ( #1298 )
...
Previously reported itself which was confusing. New print:
```
Error at org.photonvision.PhotonCamera.verifyVersion(PhotonCamera.java:378): Found the following PhotonVision cameras active on NetworkTables:
==> HD_Pro_Webcam_C920
==> Arducam_OV9281_USB_Camera
```
2024-05-10 14:58:18 -04:00
Matt
1708376df8
Expose object detection class id/conf in photonlib ( #1266 )
...
* Implement class id/conf in photonlib
* Maybe fix things
* run lint
* Update Packet.java comments
* Update Packet.java comments again
* Update comments
* oops
* Update packet.py
---------
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com >
2024-05-10 14:52:16 -04:00
Matt
113951100e
Add sequence ID, capture, publish and recieve timestamp to PhotonPipelineResult ( #1305 )
...
Closes #1304
2024-05-10 14:04:34 -04:00
Drew Williams
6535710fc4
Change sim to use 36h11 tags when doing multitag ( #1314 )
2024-04-29 16:19:03 -04:00
Matt
c9a696225d
Kill deprecated things ( #1311 )
2024-04-27 11:32:36 -05:00
Matt
c89acea5a6
Run updated wpiformat ( #1291 )
2024-03-18 20:54:06 -04:00
amquake
39216db143
[photonlib] Invert simulated target yaw ( #1243 )
2024-02-18 20:59:54 -05:00
Chris Gerth
3738e7821b
fix latency calculation ( #1227 )
2024-02-09 18:45:38 -06:00
Tim Winters
0eb0a4e3c5
Store the last pose on update ( #1207 )
...
* Store the last pose on update
* Don't clear lastPose if pose isn't calculated
---------
Co-authored-by: Mohammad Durrani <46766905+mdurrani808@users.noreply.github.com >
2024-02-05 09:50:36 -05:00
Chris Gerth
5851509a9e
Python tweaks ( #1211 )
...
* Increasing api parity with java/cpp by adding hasTargets
* type hints fixed up
* wpiFormat
2024-02-02 14:17:53 -06:00
Drew Williams
a3e1dda3aa
Fixed cpp sim apriltag layout and cleaned up cpp sim example ( #1190 )
...
* Fixed cpp sim apriltag layout and cleaned up cpp sim example
* changed layout for photoncamerasim
---------
Co-authored-by: Drew Williams <DrewW@iARx.com >
2024-01-22 15:38:25 -05:00
Ethan Wall
90773e0e4a
[photonlib-py] Begin implementing PhotonPoseEstimator in Python ( #1178 )
...
* [photonlib-py] Initial impl of PhotonPoseEstimator
---------
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2024-01-21 06:57:32 -06:00
Max Worrall
5f591a51c4
[photonlib-py] Remove print statement ( #1171 )
2024-01-18 11:21:42 -05:00
Thad House
6917ec8401
Fix vendordep including all wpilib libraries ( #1155 )
...
* Fix vendordep including all wpilib libraries. Without this fix, users were consuming a massively oversized .jar
2024-01-13 18:57:56 -06:00
Matt
07b299a076
Update vendor JSON url ( #1150 )
2024-01-12 10:07:19 -05:00
Matt
0cec1eef9f
[python] Only add maturity/suffix to version if groups matched ( #1146 )
...
* Only add maturity/suffix if groups matched
---------
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com >
2024-01-10 23:23:40 -06:00
Chris Gerth
851f2e4e68
Update Python rawBytes parsing ( #1119 )
...
* data updates to capture multiple rawBytes packets associated with serde updates from late this past month
---------
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2024-01-06 06:17:06 -06:00
Chris Gerth
276fc6178e
Apparently we need to get better about longDescription? ( #1117 )
...
Maybe make pypi happy(ier)
2024-01-05 18:03:55 -05:00
Sriman Achanta
d85bafa0eb
fix naming ( #1089 )
2024-01-04 13:20:29 -05:00