Skip to content

Commit

Permalink
Remove references to Drake
Browse files Browse the repository at this point in the history
Fixes #5426.
  • Loading branch information
calcmogul committed Jul 9, 2023
1 parent d37f990 commit 4d2fa80
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 36 deletions.
3 changes: 0 additions & 3 deletions ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ Team 254 Library wpilibj/src/main/java/edu/wpi/first/wpilibj/spline/SplineP
wpilibc/src/main/native/include/trajectory/TrajectoryParameterizer.h
wpilibc/src/main/native/cpp/trajectory/TrajectoryParameterizer.cpp
Portable File Dialogs wpigui/src/main/native/include/portable-file-dialogs.h
Drake wpimath/src/main/native/thirdparty/drake/
wpimath/src/test/native/cpp/drake/
wpimath/src/test/native/include/drake/
V8 export-template wpiutil/src/main/native/include/wpi/SymbolExports.h
GCEM wpimath/src/main/native/thirdparty/gcem/include/

Expand Down
3 changes: 0 additions & 3 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ doxygen {
cppIncludeRoots << '../ntcore/build/generated/main/native/include/'

if (project.hasProperty('docWarningsAsErrors')) {
// Drake
exclude 'drake/common/**'

// Eigen
exclude 'Eigen/**'
exclude 'unsupported/**'
Expand Down
7 changes: 1 addition & 6 deletions wpimath/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ if (WITH_JAVA)

endif()

file(GLOB_RECURSE wpimath_native_src src/main/native/cpp/*.cpp
src/main/native/thirdparty/drake/src/*.cpp)
file(GLOB_RECURSE wpimath_native_src src/main/native/cpp/*.cpp)
list(REMOVE_ITEM wpimath_native_src ${wpimath_jni_src})

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS FALSE)
Expand Down Expand Up @@ -118,10 +117,6 @@ else()
target_link_libraries (wpimath Eigen3::Eigen)
endif()

install(DIRECTORY src/main/native/thirdparty/drake/include/ DESTINATION "${include_dest}/wpimath")
target_include_directories(wpimath SYSTEM PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/thirdparty/drake/include>)

install(DIRECTORY src/main/native/thirdparty/gcem/include/ DESTINATION "${include_dest}/wpimath")
target_include_directories(wpimath SYSTEM PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/thirdparty/gcem/include>)
Expand Down
20 changes: 0 additions & 20 deletions wpimath/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,11 @@ ext {

nativeName = 'wpimath'
devMain = 'edu.wpi.first.math.DevMain'

splitSetup = {
it.sources {
drakeCpp(CppSourceSet) {
source {
srcDirs 'src/main/native/thirdparty/drake/src'
include '**/*.cpp'
}
exportedHeaders {
srcDirs 'src/main/native/thirdparty/drake/include',
'src/main/native/thirdparty/eigen/include',
'src/main/native/thirdparty/gcem/include'
}
}
}
}
}

apply from: "${rootDir}/shared/jni/setupBuild.gradle"

cppHeadersZip {
from('src/main/native/thirdparty/drake/include') {
into '/'
}
from('src/main/native/thirdparty/eigen/include') {
into '/'
}
Expand All @@ -47,7 +28,6 @@ model {
it.sources.each {
it.exportedHeaders {
srcDirs 'src/main/native/include',
'src/main/native/thirdparty/drake/include',
'src/main/native/thirdparty/eigen/include',
'src/main/native/thirdparty/gcem/include'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "frc/estimator/MerweScaledSigmaPoints.h"

namespace drake::math {
namespace {
TEST(MerweScaledSigmaPointsTest, ZeroMean) {
frc::MerweScaledSigmaPoints<2> sigmaPoints;
auto points = sigmaPoints.SquareRootSigmaPoints(
Expand All @@ -30,5 +28,3 @@ TEST(MerweScaledSigmaPointsTest, NonzeroMean) {
{2.0, 2.0, 2.00548, 2.0, 1.99452}})
.norm() < 1e-3);
}
} // namespace
} // namespace drake::math

0 comments on commit 4d2fa80

Please sign in to comment.