22
22
import edu .wpi .first .cscore .CameraServerJNI ;
23
23
import edu .wpi .first .cscore .OpenCvLoader ;
24
24
import edu .wpi .first .hal .JNIWrapper ;
25
- import edu .wpi .first .math .WPIMathJNI ;
26
25
import edu .wpi .first .math .geometry .Translation2d ;
26
+ import edu .wpi .first .math .jni .ArmFeedforwardJNI ;
27
+ import edu .wpi .first .math .jni .DAREJNI ;
28
+ import edu .wpi .first .math .jni .EigenJNI ;
29
+ import edu .wpi .first .math .jni .Ellipse2dJNI ;
30
+ import edu .wpi .first .math .jni .Pose3dJNI ;
31
+ import edu .wpi .first .math .jni .StateSpaceUtilJNI ;
32
+ import edu .wpi .first .math .jni .TrajectoryUtilJNI ;
27
33
import edu .wpi .first .math .util .Units ;
28
34
import edu .wpi .first .net .WPINetJNI ;
29
35
import edu .wpi .first .networktables .NetworkTablesJNI ;
@@ -44,15 +50,29 @@ public class TestUtils {
44
50
public static boolean loadLibraries () {
45
51
if (has_loaded ) return true ;
46
52
53
+ // None of these work either, wbhich is odd to me. commented out for now
54
+ // System.load("C:\\Users\\matth\\.wpilib\\nativecache\\windows\\x86-64\\4ca969397a399d7bcd38c546fd9ac2e1\\wpiutil.dll");
55
+ // System.load("C:\\Users\\matth\\.wpilib\\nativecache\\windows\\x86-64\\4ca969397a399d7bcd38c546fd9ac2e1\\wpiutiljni.dll");
56
+ // System.err.println("Test-load yay");
57
+
47
58
NetworkTablesJNI .Helper .setExtractOnStaticLoad (false );
48
59
WPIUtilJNI .Helper .setExtractOnStaticLoad (false );
49
- WPIMathJNI .Helper .setExtractOnStaticLoad (false );
50
60
CameraServerJNI .Helper .setExtractOnStaticLoad (false );
51
61
OpenCvLoader .Helper .setExtractOnStaticLoad (false );
52
62
JNIWrapper .Helper .setExtractOnStaticLoad (false );
53
63
WPINetJNI .Helper .setExtractOnStaticLoad (false );
54
64
AprilTagJNI .Helper .setExtractOnStaticLoad (false );
55
65
66
+ // wpimathjni is a bit odd, it's all in the wpimathjni shared lib, but the java side stuff has
67
+ // been split.
68
+ ArmFeedforwardJNI .Helper .setExtractOnStaticLoad (false );
69
+ DAREJNI .Helper .setExtractOnStaticLoad (false );
70
+ EigenJNI .Helper .setExtractOnStaticLoad (false );
71
+ Ellipse2dJNI .Helper .setExtractOnStaticLoad (false );
72
+ Pose3dJNI .Helper .setExtractOnStaticLoad (false );
73
+ StateSpaceUtilJNI .Helper .setExtractOnStaticLoad (false );
74
+ TrajectoryUtilJNI .Helper .setExtractOnStaticLoad (false );
75
+
56
76
try {
57
77
CombinedRuntimeLoader .loadLibraries (
58
78
TestUtils .class ,
0 commit comments