Skip to content

Commit fb8c126

Browse files
Merge branch 'master-timo' into ai-view-integration-(onnx)
# Conflicts: # src/main/java/controller/AutoTrackController.java # src/main/resources/view/AutoTrackView.fxml
2 parents aad90a4 + 955fdfd commit fb8c126

21 files changed

+234
-216
lines changed

.github/workflows/deploy-exe.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: Setup Environment
1414
uses: actions/setup-java@v4
1515
with:
16-
java-version: 11
16+
java-version: 17
1717
distribution: 'temurin'
1818
- name: Setup Gradle
19-
uses: gradle/actions/setup-gradle@v3
19+
uses: gradle/actions/setup-gradle@v4
2020
- name: Build exe
2121
run: ./gradlew createExe
2222
- name: Upload Artifact

.github/workflows/deploy-javadoc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Deploy Javadoc
20-
uses: MathieuSoysal/Javadoc-publisher.yml@v2.4.0
20+
uses: MathieuSoysal/Javadoc-publisher.yml@v2.5.0
2121
with:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
javadoc-branch: javadoc
24-
java-version: 20
24+
java-version: 21
2525
target-folder: docs
2626
project: gradle

.github/workflows/gradle-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
java-version: [ '11', '17', '20' ]
19+
java-version: [ '17', '21' ]
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
2828
distribution: 'temurin'
2929

3030
- name: Setup Gradle
31-
uses: gradle/actions/setup-gradle@v3
31+
uses: gradle/actions/setup-gradle@v4
3232

3333
- name: Execute Gradle build
3434
run: ./gradlew build

.travis.yml

-12
This file was deleted.

COPYING

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This application uses the following 3rd party libraries.
2+
The respective license files can be accessed by the respective URL.
3+
4+
org.openpnp:opencv. Jason von Nieda. BSD-3 License. https://github.com/openpnp/opencv/blob/develop/LICENSE
5+
org.apache.commons:commons-math3. Apache Commons. Apache 2.0 License. https://commons.apache.org/proper/commons-math/
6+
org.apache.commons:commons-csv. Apache Commons. Apache 2.0 License. https://commons.apache.org/proper/commons-csv/
7+
com.google.code.gson:gson. Google. Apache 2.0 License. https://github.com/google/gson
8+
org.json:json. Sean Leary. Public Domain. https://github.com/stleary/JSON-java
9+
us.ihmc:jimStlMeshImporterJFX. InteractiveMesh.org. InteractiveMesh License. http://www.interactivemesh.org/freeware.html
10+
org.junit.jupiter:junit-jupiter-api. The JUnit Team. Eclipse Public License v2.0. https://github.com/junit-team/junit5/blob/main/LICENSE.md
11+
org.junit.jupiter:junit-jupiter-engine. The JUnit Team. Eclipse Public License v2.0. https://github.com/junit-team/junit5/blob/main/LICENSE.md
12+
org.junit.jupiter:junit-platform-commons. The JUnit Team. Eclipse Public License v2.0. https://github.com/junit-team/junit5/blob/main/LICENSE.md
13+
org.medcare.igtl. Absynt Technologies Ltd. BSD License. https://github.com/WPI-AIM/OpenIGTLink-Java/blob/master/lib/OpenIGTLink/LICENSE.txt

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Tracker can be connected using OpenIGTLink, and the reported information can be
88

99
This tool started as a student project and is currently actively maintained by various students of [Ulm University of Applied Sciences (THU)](https://www.thu.de).
1010

11-
Currently, at least **Java 11** is required, but all LTS versions upwards (Java 15, Java 17) and also Java 20 are supported.
11+
Currently, at least **Java 17** or **Java 21** are supported.
1212

1313
# Building
1414

build.gradle

+16-29
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* This generated file contains a sample Java project to get you started.
5-
* For more details take a look at the Java Quickstart chapter in the Gradle
6-
* User Manual available at https://docs.gradle.org/current/userguide/building_java_projects.html
7-
*/
8-
91
plugins {
102
// Apply the application plugin to add support for building a CLI application
113
id 'application'
@@ -14,9 +6,9 @@ plugins {
146
// Checkstyle enforces consistent formatting rules across the project.
157
id 'checkstyle'
168
// Spotbugs is a static analyzer for java
17-
id 'com.github.spotbugs' version '6.0.8'
9+
id 'com.github.spotbugs' version '6.0.26'
1810
// With this plugin, we can build a Windows executable
19-
id 'edu.sc.seis.launch4j' version '3.0.5'
11+
id 'edu.sc.seis.launch4j' version '3.0.6'
2012
}
2113

2214
javafx {
@@ -30,7 +22,6 @@ compileTestJava.options.encoding = 'UTF-8'
3022
javadoc.options.encoding = 'UTF-8'
3123

3224
repositories {
33-
// You can declare any Maven/Ivy/file repository here.
3425
mavenCentral()
3526
}
3627

@@ -39,20 +30,18 @@ dependencies {
3930
implementation 'org.openpnp:opencv:4.9.0-0'
4031

4132
implementation 'org.openpnp:opencv:4.9.0-0'
42-
implementation 'org.hamcrest:hamcrest-core:2.2'
43-
implementation 'com.massisframework.jme3:jme3-core:3.1.0-beta2'
4433
implementation 'org.apache.commons:commons-math3:3.6.1'
45-
implementation 'org.apache.commons:commons-csv:1.10.0'
46-
implementation 'com.google.code.gson:gson:2.10.1'
34+
implementation 'org.apache.commons:commons-csv:1.12.0'
35+
implementation 'com.google.code.gson:gson:2.11.0'
4736
implementation 'org.json:json:20240303'
4837

4938
// Use JavaFX MeshImporter for STL files
5039
implementation 'us.ihmc:jimStlMeshImporterJFX:0.7'
5140

5241
// Use JUnit test framework
53-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
54-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
55-
testRuntimeOnly 'org.junit.platform:junit-platform-commons:1.10.2'
42+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
43+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
44+
testRuntimeOnly 'org.junit.platform:junit-platform-commons:1.11.3'
5645
}
5746

5847

@@ -76,27 +65,25 @@ application {
7665
checkstyle {
7766
// change path to use other checkstyle configuration
7867
configFile = rootProject.file('config/checkstyle/minimalcheck.xml')
79-
toolVersion = '10.12.3'
68+
toolVersion = '10.20.0'
8069
}
8170

82-
tasks.withType(Checkstyle) {
71+
tasks.withType(Checkstyle).configureEach {
8372
reports {
84-
xml.required = false
85-
html.required = true
73+
xml.required = false
74+
html.required = true
8675
}
8776
}
8877

8978
spotbugs{
9079
ignoreFailures = true
9180
}
9281

93-
spotbugsMain {
94-
reports {
95-
html {
96-
enabled = true
97-
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
98-
stylesheet = 'fancy-hist.xsl'
99-
}
82+
tasks.spotbugsMain {
83+
reports.create("html") {
84+
required = true
85+
outputLocation = file("$buildDir/reports/spotbugs.html")
86+
setStylesheet("fancy-hist.xsl")
10087
}
10188
}
10289

gradle/wrapper/gradle-wrapper.jar

-19.7 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+12-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum
@@ -145,15 +148,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145148
case $MAX_FD in #(
146149
max*)
147150
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148-
# shellcheck disable=SC3045
151+
# shellcheck disable=SC2039,SC3045
149152
MAX_FD=$( ulimit -H -n ) ||
150153
warn "Could not query maximum file descriptor limit"
151154
esac
152155
case $MAX_FD in #(
153156
'' | soft) :;; #(
154157
*)
155158
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156-
# shellcheck disable=SC3045
159+
# shellcheck disable=SC2039,SC3045
157160
ulimit -n "$MAX_FD" ||
158161
warn "Could not set maximum file descriptor limit to $MAX_FD"
159162
esac
@@ -202,11 +205,11 @@ fi
202205
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203206
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204207

205-
# Collect all arguments for the java command;
206-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
207-
# shell script including quotes and variable substitutions, so put them in
208-
# double quotes to make sure that they get re-expanded; and
209-
# * put everything else in single quotes, so that it's not re-expanded.
208+
# Collect all arguments for the java command:
209+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210+
# and any embedded shellness will be escaped.
211+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212+
# treated as '${Hostname}' itself on the command line.
210213

211214
set -- \
212215
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

+12-10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
4345
%JAVA_EXE% -version >NUL 2>&1
4446
if %ERRORLEVEL% equ 0 goto execute
4547

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
48+
echo. 1>&2
49+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50+
echo. 1>&2
51+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52+
echo location of your Java installation. 1>&2
5153

5254
goto fail
5355

@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5759

5860
if exist "%JAVA_EXE%" goto execute
5961

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
62+
echo. 1>&2
63+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64+
echo. 1>&2
65+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66+
echo location of your Java installation. 1>&2
6567

6668
goto fail
6769

-5.64 MB
Binary file not shown.
-5.65 MB
Binary file not shown.

0 commit comments

Comments
 (0)