Commit Graph

1042 Commits

Author SHA1 Message Date
Matt
dde5674ac9 Change user list to CopyOnWriteArrayList (#47)
Prevents concurrent modification exceptions
2020-07-18 20:25:24 -04:00
Banks T
1b7ece994a Add MutatingPipe (#44)
* Add MutatingPipe, use references in MutatingPipes

* Apply spotless

* Fix NPE in ColoredShapePipeline
2020-07-18 17:15:58 -07:00
Matt
d8d6c13679 Delete old releases in dev tag (#45) 2020-07-18 14:12:38 -04:00
Banks T
7c35f3b975 OutputMatPipe fixes (#43)
* Fix OutputMatPipe, 3d target list

* Cleanup and reordering, re-add colorspace conversion
2020-07-18 02:28:08 -04:00
Matt
5110e5c9f2 Add github-based automatic versioning (#42)
This applies to the shadowjar and adds the PhotonVersion class
2020-07-18 02:22:42 -04:00
Matt
1c5712aa39 Draw contour index, fix frame provider static properties (#41)
* Fix frame provider's static properties not updating

* Draw contour index on stream

* Refactor magic numbers into params
2020-07-17 23:00:21 -07:00
Matt
768964c8fc Misc bugfixes (#39)
* Selectively send pipeline changes

* Make input and output both rotated

* Notify UI of driver mode change over NT

* Fix "show multiple"

* Rename extent to fullness, fix area filtering

This is a breaking change to docs (make sure we note area is out of 100 and is percentage)

* Apply stream divisor to both streams

Co-authored-by: Banks T <btrout.dhrs@gmail.com>
2020-07-17 20:05:03 -07:00
Matt
0d155d9c6a Add skew to NT API (#38)
* Add skew to NT API

* Delete old entries

* Fix NPE
2020-07-17 14:03:34 -07:00
Banks T
bac09bf430 Fix PSC causing lag via selective update broadcasting (#28)
* Fix PSC causing lag via selective update broadcasting

* add logging, update key

* Fix current pipeline setting selective send

Co-authored-by: Matt <matthew.morley.ca@gmail.com>
2020-07-16 22:37:18 -07:00
Banks T
53783d88d7 Fix NT driver mode set/get (#37) 2020-07-16 22:43:29 -04:00
Matt
061385f0b6 Add skew calculation support (#36)
This is a breaking change to PhotonLib.
2020-07-16 20:50:40 -04:00
Declan Freeman-Gleason
7bf5142fad Use the output stream instead of the input stream in drivermode (#34) 2020-07-16 19:37:29 -04:00
Matt
264fb1570d Add default reflective pipeline (#35) 2020-07-16 19:18:01 -04:00
Declan Freeman-Gleason
8b46ad1cab UI Redesign (#22)
* Rework UI into a new, responsive layout

* Send two streams (only one is currently downscaled)
2020-07-13 19:34:31 -07:00
Matt
aed92e7132 [backend] Check file existance, use underscores in camera unique name (#33)
* Add more comments and logging, fix configManager barf, add underscores

* apply spotless

* Add more verbose logging

* Update VisionSourceManager.java
2020-07-13 19:41:36 -04:00
Matt
f93ec6665f Update CODEOWNERS to point to program dev team (#32) 2020-07-13 11:42:41 -04:00
Xzibit
7a7f2ff91c ColourShape benchmark and moar docs (#11)
* Added benchmark

* Rebase

* [Server] ColouredShapePipeline Benchmarks and Documentation

* [Server] ColouredShapePipeline Benchmarks and Documentation

* Added benchmark

* Rebase

* [Server] ColouredShapePipeline Benchmarks and Documentation

* [Server] ColouredShapePipeline Benchmarks and Documentation

* [Server] ColouredShapePipeline Benchmarks and Documentation

* [CSP] Rebase off master

* [CSP] Remove unused variables

* [CSP] Make circles Mat private and final
2020-07-12 14:36:45 -04:00
Matt
54445dad35 [backend] Fix FPS calculation, display latency in UI (#31) 2020-07-12 13:37:04 -04:00
Banks T
30b4b8d111 Add keyed NT Data and listeners (#27)
* Add most of the missing NT data to NTDataConsumer

* Clean up unused data classes, refactor DataConsumer to CVPipelineResultConsumer

* Fix root table name and reference

* Update NTDataPublisher and VisionModule for listeners

* NPE fix, attempt to remove old NT Table on name change

* Fix NT connected log spam

* Apply spotless

* Move NT flush, fix raw data name
2020-07-12 12:29:30 -04:00
Matt
afc52815e7 Install python dependencies in offline docs 2020-07-12 09:06:24 -07:00
Banks T
0763e36b81 Pipe cleanups (#29)
* Pipe cleanups

* Remove redundant this qualifier
2020-07-12 11:58:01 -04:00
Banks T
b69ac3af2f Filter undesired video modes (#30) 2020-07-12 11:47:59 -04:00
Matt
e7783979f8 [CI] install new dependencies 2020-07-11 19:50:29 -07:00
Xzibit
03b2a66ecd [backend] Camera calibration (#10)
* Fleshed out pipeline

* Fixed pipeline empty mat

* Remove orig pipeline

* Remove gradle changes

* Added docs

* [Server] Camera Calibration

* [Server] Camera Calibration

* [Server] Camera Calibration

* [Server] Camera Calibration w/ PerViewErrors

* [Server] Camera Calibration w/ PerViewErrors

* [Server] Camera Calibration w/ PerViewErrors

* [Server] Camera Calibration w/ PerViewErrors

* [Server] Camera Calibration

* [Server] Camera Calibration

* [Server] Added logging to Camera Calibration
2020-07-11 19:44:22 -07:00
Banks T
9f1899b081 [backend] Logging additions (#24)
* Remove de_pest log level, add instanced shouldLog

* Rename Server, VisionProcess LogGroup to WebServer, VisionModule

* Rename Level to LogLevel

* Added lambda logger methods

* Updated Platform util class, added bootup logging

* Naming fix

* Fix errors, apply spotless

* Apply spotless
2020-07-11 19:43:19 -07:00
Prateek Machiraju
a3ee9d8977 Add link to latest development release (#26) 2020-07-11 13:43:30 -07:00
Banks T
a8d4b88097 Attempt stale CI fix (#25)
* Attempt stale CI fix

* Update main.yml

* Update main.yml

* Revert to actions/checkout@v1

* Skip linkcheck

* Fix CI build

Co-authored-by: Vatan Aksoy Tezer <13888103+vatanaksoytezer@users.noreply.github.com>
2020-07-11 22:25:32 +03:00
Prateek Machiraju
0a18d86fe6 Automatically push latest commit to Dev tag (#23) 2020-07-10 15:26:45 -04:00
Matt
1538c5576d Update README.md 2020-07-10 08:16:45 -07:00
Vatan Aksoy Tezer
0a2dc8ecb9 Add placeholder docs (#21)
* Add placeholder docs

* Update index.html

Co-authored-by: Banks T <btrout.dhrs@gmail.com>
2020-07-07 17:58:00 -04:00
Banks T
93a7c96131 Update CSCore to fix linux cam dupes/BCM devices (#20) 2020-07-07 17:42:46 -04:00
Vatan Aksoy Tezer
1bbeed7d3d Add offline docs and respective CI tasks (#19)
* Add gradle javadocs task

* Add task for copying resources

* Add docs tab

* Add online docs

* Add offline docs

* Change gitignore

* Remove web resources

* Fix .gitignore

* Fix lint error

* Fix lint error

* Add CI tasks for offline docs

* Hoepfully fix CI

* Hoepfully fix CI

* Fix lint checker

* Checking on CI

* Fix CI fetch

* Fix EOF and CI repo

Co-authored-by: Vatan <vatan.tezer@polonom.com>
2020-07-07 15:10:28 -04:00
Matt
4cd2262acc Bootup sprint (#18)
* Did some stuff

* Fix gradle, start implementing mjpeg frame consumer

* Did some stuff

* bade changes

* rename camera config to USBCameraConfiguration, add name

* unrename cameraconfiguration

* Add pub/sub framework

* Add setResolution to mjpeg frame consumer

* add NTDataConsumer

* Add some totally broken hsv hacks

* Start refactoring UI data

* Update index.js

* Commit and push, he says

* Fix up some errors

* Fix input tab

* Fix fps

* Update index.js

* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables

* Change v-model to point to data()

* update hsv to use mutations

* Work on saving, fix hsv

* Rename shouldErode/shouldDilate to erode and dilate

* Hook all the tabs up to the Store

* Change handleData to handlePipelineData

* camera quirk redo, add ICCSub to SocketHandler

* Fix some property names

* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums

* change pipeline type to an int in store

* Fix mutation naming

* Attempt threshold fix

* Update SocketHandler.java

* Add truthy data sending

* Start adding logging support

* [UI] Add delay to slider input boxes (#1)

* [UI] [Backend] potentially fix camera settings, various logging tweaks

* Don't release raw input mat

* add setVideoModeIndex to vision settables

* Implement pipeline index in socket handler, add framework for renaming/changing pipes

* (ish) get pipeline change working

* Create index.html

* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)

* Refactor UI to use mutatePipeline, send pipeline results

* Update NetworkConfig.java

* Change double to number

* Run spotless

* Fix reversal of large/small comparators

* Fix left/right

* Fix pitch/yaw calculation bug, fix area bug

* Use Vue.set instead of assignment

This fixes {{ }}

* Update App.vue

* run spotless

* Actually add pipelines and reassign indecies

* Delete old pipeline configs

Fixes duplication on renaming pipeline

* Start working on deleting pipes

* Fix camera nickname change

* run spotless

* Fix some test stuff

* Update VisionModuleManagerTest.java

* vision source manager test is still broken

* Fix VisionSourceManager test

* Apply spotless 2 electric boogaloo

Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 04:01:58 -04:00
Prateek Machiraju
01712a7396 Fix buildAndCopyUI task on Linux/macOS (#17)
* Fix buildAndCopyUI task on Linux/macOS

* Remove web assets

* Remove index.html

Co-authored-by: Banks T <btrout.dhrs@gmail.com>
2020-07-03 11:49:08 -04:00
Claudius Tewari
e0c1ff8f46 Removing wpilib stuff from coverage. (#16) 2020-07-03 11:45:02 -04:00
Claudius Tewari
09eea8bb53 Adding codecov support. (#13)
* Adding code codecov support.

* Adding status badges for codecov and CI.

* Fixes to codecov in CI.

* Checking build directory.

* Syntax error.

* Fixing xml path.

* Removing token.
2020-07-03 00:45:42 -04:00
Prateek Machiraju
2e7cdf008b Add copyright header to sources (#14)
* Add License to top of each file

* Remove test folder

* Do not apply PhotonVision license to wpilib
2020-07-02 22:02:21 -04:00
Situs84
c7bb24eb74 [UI] Fonts and the Save Button (#9)
Modified the default font and re-styled the save button
2020-06-28 14:58:26 -07:00
Prateek Machiraju
61ff05c7bb [Build] Add buildAndCopyUI Gradle task (#8) 2020-06-28 14:57:23 -07:00
Trevor Nelson
fb03d02456 [UI] Made pipeline menu button color match other icons (#7) 2020-06-28 13:01:17 -07:00
Prateek Machiraju
b92ad59468 [CI] Setup CI with GitHub Actions (#5)
* Setup CI with GitHub Actions

* Add check-lint job

* Remove actions-ci branch trigger
2020-06-28 11:34:12 -07:00
Matt
c3987fbd31 [Gradle] Fix shadowJar classpath and manifest 2020-06-28 10:39:14 -07:00
Banks T
8fe5fa4cc2 Fix old naming in strings (#2) 2020-06-28 06:11:24 -04:00
Declan Freeman-Gleason
895edb988a UI Rebrand (#1)
* Rebrand UI and increase responsiveness

* Fix typo in PipelineViews and SettingsViews directory name

* Inset FPS indicator in stream preview

* Rebrand favicon
2020-06-28 06:11:09 -04:00
Banks T
3e8f3736af Merge pull request #3 from PhotonVision/client-ci
Add client CI Action
2020-06-28 05:05:48 -04:00
Banks T
cc0e55d372 Add client CI Action 2020-06-28 04:54:53 -04:00
Banks Troutman
f2fbe9dd6e Fix .gitignore, move vision package out of common 2020-06-28 04:40:43 -04:00
Matt
bdbd6b9d18 Rename to PhotonVision 2020-06-27 19:11:56 -07:00
Ori agranat
b28d0e046e Advanced ui (#105)
* added keyboard event and logger package

* added logger

* finalized logger

* added object diff filter and undoRedo mixin

* connected undo redo system and cleanup

* updated vuetify version

* [WIP] undo redo integration

* working rollback system

* finished rollback sub components

* finished rollback integration

* lint fix to all client
2020-06-26 14:39:14 +03:00
Ori agranat
f92bf670de Source manager (#99)
* Add some config stuff, run format

* Create JacksonUtils.java

* Fix deserialization, run wpiformat

* initial work on source manager

* work on USB camera class

* wip USB Camera

* rename root folder

* added USB Camera Source

* Fix some errors, run spotless

* finished VIsion source manager

* bugfix unversioned git files and added default cam config constructor

* Apply spotless, add simpler CameraConfiguration ctor

* [WIP] unit tests

* Fixed camera mocking

* added equal test for class

* finalized test

* added another cam to test & rebase

* test bugfix

* Better handle nonexistant files

* removed camera validation and mockito

* Update WPI maven repo to dev, change to version with VideoCapture fix

* added Quirky camera class

* remove name check for cam quirk , apply spotless

* added quirk test

Co-authored-by: Matt <matthew.morley.ca@gmail.com>
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
2020-06-17 14:12:19 -04:00