mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
* Rebase solvePNP on master * added 3D tab minimap and csv reader * More solvePNP * Create draw pipe for pnp data * SolvePNP piping work * Move sorting into solvepnppipe * Create calibration pipeline * Update CalibrateSolvePNPPipeline.java * add camera tilt angle * Add calibration slider and snapshot button to 3D view * Mirror updates in the socket handler * add 3d calibration mode to the pipeline manager * created calibration functions in ui and backend * Start plumbing calibration * Add snapshot and other handling to the RequestHandler * added select resolution before starting calibration * Rename solvePNPPipe to bounding box solve pnp pipe * Update BoundingBoxSolvePNPPipe.java * Add Mat serializer and CameraCalibrationConfig * Begun calibration saving, fixed UI/Backend snapshot count mismatch * Add (unplumbed) option to set checkerboard size This will allow users to change the units their calibration is in * Create chessboard.png * Fix calibration NPE * changed string serialization to a json send * bug fixed cancellation button * Fix spelling of snapshot in 3d.vue * Plumb resolution change * Set resolution during config, start on config serialization * Update .gitignore * Config fixes * Start transition away from cvpipeline3d * fix NPE on uncalibrated cameras * clear list on fail * Fix video mode index error * ignore getters in camera calibration config * Create json constructor for jsonmat * get solvePNP mostly returning sane values * Fix solvePNP bug and add unit test * FIx calibration mat truncation * added capture amount model upload and minimap data * Standardize on meters in calibration and bounding box * fix json out of bounds and handle null calibration more gracefully * don't put text on calibrate image, go back to inches * convert distance to meters this means calibration will need to be in inches * Actually save raw contor * Update GroupContoursPipe.java * Add all calibration return to camera capture * hard code 2019 target * bugfixed draw2d added fail calib popup, merge end and cancel added the res index to the calib start * Clarify error message and draw more fancy rectangles * Cleanup memory in solvepnp * re did minimap component * fix npe if left/right is null * remove references to 2d * try-catch running the current pipeline * Add method to find corners using the harris corner detector * Possibly fix left/right missmatch * Fix 3D Tab error * FIx file permissions, mat serializer adjustments * fixed mini map for field coordinates * mini map changes fov * Update SolvePNPPipe.java * get rid of target corners * some memory leak fixes * fixed mini map location * added position under minimap * changed player fov look * put all targets in the web send * re did target send to ui added target tables, bugfix calibration * fixed y position * Add tilt angle to capture properties * maybe fix y axis in minimap * Add square size to onCalibrationEnding * Possibly add square size to UI * fix NPE with pitch * Fix bug with sending multiple targets * Only instantiate 3d stuff if we are in 3d mode * Fix array list exceptions * Fix bug in sort contors list was truncated too early * added download chess, tilt setting and ordinal tilt, * added square size connection * removed unused code * Update pom version to 2.1-RELEASE * Send camera calibrations to UI * Stream pose list to a LIst * Only stream necessary parts of the aux list entry * Make broadcastMessage synchronized to prevent ConcurrentModificationExceptions * added fps counter changed squaresize steps bug fixes in tables * bugfix camera settings cam wont change Authored-by: oriagranat9 <oriagranat9@gmail.com>
266 lines
9.8 KiB
XML
266 lines
9.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.chameleon-vision.main</groupId>
|
|
<artifactId>chameleon-vision</artifactId>
|
|
<version>2.1-RELEASE</version>
|
|
<build>
|
|
<plugins>
|
|
<!--setup for java jdk 12-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.0</version>
|
|
<configuration>
|
|
<source>12</source>
|
|
<target>12</target>
|
|
<verbose>true</verbose>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>com.chameleonvision.Main</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<wpilib.version>2020.1.1-beta-3-15-g7b9c6eb</wpilib.version>
|
|
<opencv.version>3.4.7-2</opencv.version>
|
|
</properties>
|
|
<repositories>
|
|
<!--WPI official maven repo for frc libs-->
|
|
<!-- <repository>-->
|
|
<!-- <id>WPI</id>-->
|
|
<!-- <name>WPI Maven repo</name>-->
|
|
<!-- <url>https://first.wpi.edu/FRC/roborio/maven/release</url>-->
|
|
<!-- </repository>-->
|
|
<repository>
|
|
<id>WPI</id>
|
|
<name>WPILib Artifactory Server-releases</name>
|
|
<url>https://frcmaven.wpi.edu:443/artifactory/development</url>
|
|
</repository>
|
|
</repositories>
|
|
<dependencies>
|
|
<!--javalin micro webservices framework-->
|
|
<dependency>
|
|
<groupId>io.javalin</groupId>
|
|
<artifactId>javalin</artifactId>
|
|
<version>3.4.1</version>
|
|
</dependency>
|
|
|
|
<!--org.json from saving and loading data-->
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>20190722</version>
|
|
</dependency>
|
|
|
|
<!--slf4j for javalin -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-nop</artifactId>
|
|
<version>1.7.26</version>
|
|
</dependency>
|
|
|
|
<!--apache common classes libs-->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-math3</artifactId>
|
|
<version>3.6.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.msgpack</groupId>
|
|
<artifactId>msgpack-core</artifactId>
|
|
<version>0.8.18</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.msgpack</groupId>
|
|
<artifactId>jackson-dataformat-msgpack</artifactId>
|
|
<version>0.8.18</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.9</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
<version>2.10.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>2.10.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>2.10.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<version>5.5.2</version>
|
|
</dependency>
|
|
|
|
<!-- supported platforms for wpilib JNI classifiers
|
|
linuxaarch64bionic
|
|
linuxraspbian
|
|
linuxx86-64
|
|
osxx86-64
|
|
windowsx86-64
|
|
-->
|
|
<!--frc cscore java libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-java</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
</dependency>
|
|
<!--frc cscore interface libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxaarch64bionic</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxraspbian</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>osxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cscore</groupId>
|
|
<artifactId>cscore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>windowsx86-64</classifier>
|
|
</dependency>
|
|
|
|
<!--frc camera server libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.cameraserver</groupId>
|
|
<artifactId>cameraserver-java</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
</dependency>
|
|
|
|
<!--frc network table java libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-java</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
</dependency>
|
|
|
|
<!--frc network tables interface libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>osxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxraspbian</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>linuxaarch64bionic</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.ntcore</groupId>
|
|
<artifactId>ntcore-jni</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
<classifier>windowsx86-64</classifier>
|
|
</dependency>
|
|
|
|
<!--frc java libs-->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.wpiutil</groupId>
|
|
<artifactId>wpiutil-java</artifactId>
|
|
<version>${wpilib.version}</version>
|
|
</dependency>
|
|
|
|
<!-- WPI OpenCV for all supported platforms -->
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-java</artifactId>
|
|
<version>${opencv.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-jni</artifactId>
|
|
<version>${opencv.version}</version>
|
|
<classifier>linuxaarch64bionic</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-jni</artifactId>
|
|
<version>${opencv.version}</version>
|
|
<classifier>linuxraspbian</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-jni</artifactId>
|
|
<version>${opencv.version}</version>
|
|
<classifier>linuxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-jni</artifactId>
|
|
<version>${opencv.version}</version>
|
|
<classifier>osxx86-64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>edu.wpi.first.thirdparty.frc2020.opencv</groupId>
|
|
<artifactId>opencv-jni</artifactId>
|
|
<version>${opencv.version}</version>
|
|
<classifier>windowsx86-64</classifier>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|