amquake
5b2be119e7
[photon-lib] Cleanup simulation Rotation3d usage ( #982 )
2023-10-25 18:19:48 -07:00
Sriman Achanta
63147786b9
Fix MacOS OpenCV library loading and use wpi buildTools versions ( #978 )
...
* Bump to beta 2
* Reduce copy paste spam going forwards
* Bump gradle
* oops
* fix gradlew
* update gradle wrapper props
* remove unused imports
* Update node task
* Fix shadowjar
* fix more deps
* ?
* core works
* revert changes to index
* Formatting fixes
* Update config.gradle
* Fix PhotonLib gradle
* fix tests and sim loading native libraries
* re-enable macos build
* fix?
* Update build.gradle
---------
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2023-10-25 20:27:56 -04:00
Matt
cb401e1c7a
Add 36h11 tag model for 2024 ( #951 )
...
* Add 36h11 model
* Formatting fixes
* Match frontend TargetModel enum with backend
* fix target model merge
* Update TargetModel.java
---------
Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com >
2023-10-24 23:04:52 -04:00
amquake
df45bc2d73
Re-enable OpenCV ArUco detector for AprilTags ( #916 )
...
- Fixes ArUco on picam
- Adds `ArucoPoseEstimatorPipe` for single-tag pose estimation
- Previously, `Aruco.estimatePoseSingleMarkers()` was used for tag pose estimation. This uses the default `SOLVEPNP_ITERATIVE` solver and I believe the method is removed in opencv 4.8. The `SOLVEPNP_IPPE_SQUARE` solver implemented is more appropriate for markers.
- Pipeline architecture cleanup
- Re-enables ArUco pipeline in UI
- Multi-tag support
ArUco detector support is still considered experimental at this time. This should enable a baseline of support for initial testing, but expect some quirks to remain across platforms.
2023-10-24 22:39:38 -04:00
Matt
47bd077bbb
Run multitag on coprocessor ( #816 )
2023-10-17 10:20:00 -04:00
Sriman Achanta
ededc4f130
Take Snapshots from PhotonClient ( #940 )
2023-10-17 09:08:25 -04:00
amquake
ad4f462fd6
[photon-core] [2024] Cleanup and document coordinate system conversion ( #894 )
...
* cleanup and document coordinate conversion
* spotless
* bump wpilib version
* coordinate conversion tests
* fix/document SolvePNPPipe models and corners
* format
* run lint
---------
Co-authored-by: Matthew Morley <matthew.morley.ca@gmail.com >
2023-10-15 13:46:55 -04:00
amquake
c8c9e779ab
[photon-core] 2D Detection data accuracy ( #896 )
...
Use calibration data for 2d target info when available (principal point, FOV)
Correct perspective distortion in 2d yaw/pitch info
2023-10-15 13:44:47 -04:00
Sriman Achanta
760de0ff86
[photon-core] [NFC] Code Cleanup, spelling, and grammar ( #945 )
2023-10-15 12:31:23 -04:00
Matt
9991f8670c
Bump wpilib versions to 2024 beta 1 ( #947 )
2023-10-15 12:17:40 -04:00
amquake
5f3b5d2f19
Remove unused MathUtils.orthogonalizeRotationMatrix() ( #944 )
2023-10-10 07:12:03 -04:00
Sriman Achanta
0e06737272
move javalinVersion to a global version ( #942 )
2023-10-10 05:06:59 -04:00
Matt
43b78fae35
Remove un-needed NM-dbus dep ( #919 )
2023-10-10 04:36:02 -04:00
amquake
3c85291610
Pi startup fix ( #923 )
2023-09-27 21:37:27 -04:00
Ryan Blue
9d0f1a34a8
Use MemAvailable rather than MemFree ( #914 )
...
Fixes linux metrics reporting to report mem free before swap starts, instead of physical unused ram
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
2023-09-23 10:36:38 -04:00
Ryan Blue
9f3a735c59
Fix spotless divergence for FilterContoursPipe ( #908 )
...
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2023-09-12 06:57:01 -04:00
Matt
306677e56f
Advanced networking settings ( #899 )
...
Exposes NetworkManager interface name and more robustly handles device/interface names internally.
---------
Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com >
2023-09-01 15:58:35 -04:00
Sriman Achanta
08892b9e68
UI patches ( #905 )
...
- Show 0 clients when NT server props are undefined
- Add Prettier
---------
Co-authored-by: Matthew Morley <matthew.morley.ca@gmail.com >
2023-08-31 16:56:58 -04:00
Matt
2f2396fe57
Fix frontend spelling of shouldManage ( #898 )
2023-08-21 16:47:28 -04:00
Sriman Achanta
f623e4a1cc
[PhotonClient] Vite and Typescript complete refactor ( #884 )
2023-08-20 22:51:35 -07:00
Sriman Achanta
dd9795028d
Revert "Add checking of current and requested video_mode ( #859 )" ( #887 )
...
This reverts commit 013ff5e , which caused crashes with libcamera cameras.
More testing required to root-cause and fix this PR, but rolling back for testing for now.
2023-07-20 16:48:48 -07:00
Sriman Achanta
715ef62c85
Update backend to provide more useful info to frontend ( #866 )
2023-06-25 18:07:27 -07:00
Matt
b1546b8038
Add SQL config manager ( #818 )
...
Serializes settings using a sqlite database instead of just putting them on the filesystem. Ideally since sqlite deals with filesystem robustness stuff this should work a lot better
Merging this now so we have lots of time to stabilize pre-beta
2023-06-18 00:47:18 -04:00
Matt
013ff5e7c0
Add checking of current and requested video_mode ( #859 )
...
* (fix): Add checking of current to requested mode
* Create videoModeEquals
* Update OpenCvUtils.java
---------
Co-authored-by: Chirag Lamsal <chirag.lamsal@gmail.com >
2023-06-18 00:01:33 -04:00
person4268
6d2eae7f20
Add ignored cameras regex to command-line arguemnts ( #849 )
...
This adds a regex that ignores cameras if they match it, for if you have another piece of software running that needs a second camera, or if you have a webcam in your laptop that cscore hates.
2023-06-03 21:04:04 -04:00
Doug Wegscheid
80f479344d
Allow arbitrary networktables address ( #764 )
...
* Allow specifying NT server address by ip.
2023-05-12 18:01:09 -04:00
Stephen Day
6bdb158b33
Remove ErodeDilate from UI and ColoredShapePipeline ( #829 )
2023-04-18 18:50:01 -04:00
Matt
dcd917870c
Properly assign camera index when connecting new camera ( #819 )
2023-03-01 16:05:30 -05:00
Matt
2b8f900768
Add checks for null in NTDataPublisher ( #820 )
2023-03-01 16:05:22 -05:00
Matt
0bb563a6e2
Save ConfigManager to disk on JVM exit ( #821 )
2023-03-01 16:05:03 -05:00
Matt
5b86360b9b
Multi-tag pnp in robot code ( #787 )
...
---------
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com >
Co-authored-by: Joseph Farkas <16584585+MrRedness@users.noreply.github.com >
2023-02-13 17:57:01 -05:00
Matt
6886663688
Robustify setting pipeline index ( #790 )
2023-02-08 21:07:12 -05:00
Matt
3c53dcbb7b
Call correct addCalibration in VisionModule ( #793 )
2023-02-08 21:06:53 -05:00
Matt
f6e3c9b3ee
Fix desync between web UI and NT ( #778 )
...
Actually calls VisionModule::setPipeline when changing pipelines (needed to change video modes)
2023-01-29 23:30:34 -05:00
Matt
d0162b0ed0
Switch network management to networkmanager on Linux ( #738 )
...
* Switch network management to networkmanager
* Run style
* Fix command formatting
* Add curst Pi 5 second sleep
* Run formatter
* Also bring up/down on other linux
* Switch to nmcli down/up
* Remove sleep in nmcli down/up
* Address review
2023-01-18 16:31:14 -05:00
Matt
9d6997180d
Add calibdb upload button ( #735 )
...
* Add calibdb upload
* Fix distortion coefficients size
2023-01-18 16:29:58 -05:00
Matt
d9f99f9c9b
Add calibration decimate dropdown ( #739 )
...
* Increase resized size to 640
* Add calibration decimation dropdown
* Update Calibrate3dPipeTest.java
* Only allow decimation down to >=320x240
* Update CamerasView.vue
2023-01-14 19:23:14 -06:00
Matt
073714f0bc
[AprilTags] Reduce default iterations to 40 ( #726 )
...
Co-authored-by: Mohammad Durrani <46766905+mdurrani808@users.noreply.github.com >
2023-01-11 16:32:31 -05:00
Jack
80e16ece87
Add hostname to camerapublisher mjpeg stream ( #722 )
...
Closes #721
2023-01-09 13:11:49 -05:00
Matt
86b9d4b037
Add 2023 pics to test mode ( #720 )
2023-01-07 20:48:21 -05:00
amquake
63b3cfe7e1
Remove distortion logs ( #712 )
...
* remove distortion logs
* spotless
* Run spotless
💀
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2023-01-06 23:09:58 -05:00
Matt
967be84b4b
Expose detected tag corners ( #702 )
...
Removes GetCorners, replaces with getMinAreaRectCorners and getDetectedCorners
2023-01-06 22:20:27 -05:00
Nick Hadley
0f427bb52b
Update PhotonCamera error messages to be more specific ( #697 )
...
Closes #692
2023-01-05 19:28:32 -05:00
Mohammad Durrani
05198ef294
Aruco Support for AprilTag Detection (Experimental) ( #636 )
...
Uses OpenCV's aruco module for AprilTag detection.
2023-01-05 13:25:44 -05:00
Matt
b263fe19cc
Undistort corners in umich pose estimation ( #699 )
...
* Undistort corners in umich pose estimation
Add tag corner unit test
Delete hellooo.jpg
Update Draw3dTargetsPipe.java
Update FileFrameProvider.java
* Update AprilTagTest.java
2023-01-05 12:08:25 -06:00
Chris Gerth
326701b74f
Bug Fix Grab Bag ( #688 )
...
* Reordered ov video modes to be lowest-to-highest res
* Save off sensor model on init. Guard against low, crashy exposures.
* Pulled in matt's fixups from https://github.com/PhotonVision/photon-libcamera-gl-driver/suites/10144555465/artifacts/495489276
* Further autoexposure tweaks for picam v1
* Allow undercores in camera rename
* Additional guarding against output images being empty
* lock out auto-exposure on ov9281's
* Guarding stream pipelines against empty frames from cameras. Rearranged driver stream to resize first, then draw crosshairs (matchces with other pipelines now).
* NT Priority fixup - if client is sending commands on NT, its nt value should win over anything done from the UI
* Synchronous pipline adjustmet fix, method cleanup
* lint
* circle pipe and data publish bugfixes
* lint
* Pulled in matt's latest .so and re-enabled auto exposure on 9281's
2023-01-03 21:53:04 -06:00
Mohammad Durrani
1ab5b66829
Clean up front end, remove decision margin and error bits, remove target family selector ( #652 )
...
* clean up front end ui
* address changes
* Further tweaks to camera default gains to help make sure users get a good first impression
* even more saner defaults
* Even even more camera sane defaults
* lint
* lint pt 2
* unit test fixup
Co-authored-by: Chris <chrisgerth010592@gmail.com >
2022-12-31 18:29:36 -05:00
Chris Gerth
d0bf64af6c
Convert input/output image save to integers ( #664 )
...
Changes image saving technique to use integers, not booleans
2022-12-30 22:48:28 -05:00
Sriman Achanta
15fbe29d34
Remove redundant if check in OutputStreamPipeline ( #660 )
...
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2022-12-30 02:00:14 -05:00
Matt
3a10f49b54
Only run Apriltag pose estimation when enabled ( #657 )
...
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com >
2022-12-28 13:32:38 -08:00