Skip to content

Commit

Permalink
Unit test corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
JHartzer committed Nov 22, 2024
1 parent 1bd4aa8 commit 4a76928
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
6 changes: 1 addition & 5 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ Software Work:
- Add extrinsic step disturbance
- Add IMU bias instability
- Plot Allan Variance
- Compute Cramer Rao Lower Bound
- https://iaac.technion.ac.il/workshops/2010/KFhandouts/LectKF24.pdf
- https://www.cs.cmu.edu/~aarti/Class/10704_Spring15/lecs/lec23.pdf
- Outlier rejection by gating / Mahalanobis distance
- Play rosbags through as fast as possible given yaml
- RANSAC Features
- Calculate CR Lower Bound

Additional Trackers:
- AprilGridTracker

Documentation:
- Simulation diagram
- Add gif to main readme
- Create Simulated Camera video feed
- Create Simulated Camera video feed
- Circles for points, radius based on distance
- Polygon for Board edges
- https://docs.opencv.org/4.6.0/d3/d96/tutorial_basic_geometric_drawing.html
Expand Down
3 changes: 0 additions & 3 deletions eval/tab_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,6 @@ def plot_body_ang_acc_cov(self):
legend_label='Z')
return fig



def plot_aug_pos(self):
"""Plot augmented state position."""
fig = figure(width=800, height=300, x_axis_label='Time [s]',
Expand Down Expand Up @@ -697,7 +695,6 @@ def plot_aug_ang(self):

return fig


def get_tab(self):
layout_plots = [
[
Expand Down
1 change: 0 additions & 1 deletion src/sensors/sim/test/sim_gps_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,4 @@ TEST(test_SimIMU, Constructor) {
EXPECT_NEAR(enu_4[0], 3.058, 1e-3);
EXPECT_NEAR(enu_4[1], 0.735, 1e-3);
EXPECT_NEAR(enu_4[2], 0.027, 1e-3);

}
4 changes: 4 additions & 0 deletions src/sensors/test/camera_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
#include "trackers/feature_tracker.hpp"

TEST(test_feature_tracker, initialization) {
EKF::Parameters ekf_params;
ekf_params.debug_logger = std::make_shared<DebugLogger>(LogLevel::DEBUG, "");

FeatureTracker::Parameters params;
params.ekf = std::make_shared<EKF>(ekf_params);
params.camera_id = 1;

params.detector = Detector::BRISK;
Expand Down
4 changes: 4 additions & 0 deletions src/trackers/sim/test/sim_feature_tracker_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#include "trackers/sim/sim_feature_tracker.hpp"

TEST(test_feature_tracker, constructor) {
EKF::Parameters ekf_params;
ekf_params.debug_logger = std::make_shared<DebugLogger>(LogLevel::DEBUG, "");

FeatureTracker::Parameters params;
params.ekf = std::make_shared<EKF>(ekf_params);
FeatureTracker feature_tracker(params);
}
4 changes: 4 additions & 0 deletions src/trackers/test/feature_tracker_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
#include "sensors/camera.hpp"

TEST(test_feature_tracker, initialization) {
EKF::Parameters ekf_params;
ekf_params.debug_logger = std::make_shared<DebugLogger>(LogLevel::DEBUG, "");

FeatureTracker::Parameters params;
params.ekf = std::make_shared<EKF>(ekf_params);
params.camera_id = 1;

params.detector = Detector::BRISK;
Expand Down

0 comments on commit 4a76928

Please sign in to comment.