Skip to content

Commit

Permalink
Remove even more vestigial code
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Dec 9, 2023
1 parent b45f4b5 commit b7670a0
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 1,032 deletions.
175 changes: 0 additions & 175 deletions src/CAN/CANTest.cpp

This file was deleted.

13 changes: 0 additions & 13 deletions src/CAN/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,3 @@ cmake_minimum_required(VERSION 3.8)

add_executable(FakeCANBoard FakeCANBoard.cpp)
target_link_libraries(FakeCANBoard can_interface real_world_interface)

add_executable(CANTest CANTest.cpp)
target_link_libraries(CANTest can_interface)

add_executable(TestIMU TestIMU.cpp)
target_link_libraries(TestIMU can_interface)

if(WITH_TESTS)
# Networking Tests
target_sources(tests PUBLIC
# add test code here
)
endif()
51 changes: 0 additions & 51 deletions src/CAN/TestIMU.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@ add_library(filters SHARED
filters/PoseEstimatorLinear.cpp
filters/StateSpaceUtil.cpp
filters/FullPoseEstimator.cpp
filters/pose_graph/graph.cpp
filters/pose_graph/friendly_graph.cpp
filters/pose_graph/factors.cpp
)
target_link_libraries(filters utils)

Expand Down
7 changes: 0 additions & 7 deletions src/camera/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
find_package(OpenCV REQUIRED)
find_package(Threads REQUIRED)

add_executable(camera_tester
CameraTester.cpp
CameraParams.cpp
CameraConfig.cpp
Camera.cpp)

add_executable(calibration
calibration.cpp)

target_link_libraries(calibration ${OpenCV_LIBS})
target_link_libraries(camera_tester ${OpenCV_LIBS} Threads::Threads utils)
91 changes: 0 additions & 91 deletions src/camera/CameraTester.cpp

This file was deleted.

11 changes: 3 additions & 8 deletions src/filters/FilterPerfTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ void usage(const char* name);
template <typename K, typename V>
constexpr std::unordered_map<V, K> reverseMap(const std::unordered_map<K, V>& map);

enum class FilterType
{
EKF,
PoseGraph
enum class FilterType {
EKF
};

const std::unordered_map<std::string, FilterType> filterNameToType{
{"EKF", FilterType::EKF}, {"PoseGraph", FilterType::PoseGraph}};
const std::unordered_map<std::string, FilterType> filterNameToType{{"EKF", FilterType::EKF}};

const std::unordered_map<FilterType, std::string> filterTypeToName =
reverseMap(filterNameToType);
Expand Down Expand Up @@ -119,8 +116,6 @@ int main(int argc, const char* argv[]) {
<< ms << "," << pose(0) << "," << pose(1) << "," << pose(2) << "\n";

fpe.predict(thetaVel, xVel);
} else if (filterType == FilterType::PoseGraph) {
CHECK_F(false); // TODO: add pose graph support
} else {
CHECK_F(false);
}
Expand Down
Loading

0 comments on commit b7670a0

Please sign in to comment.