Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 FAILED TEST: testDPGO.testRobustSinglePoseAveraging #2

Open
adthoms opened this issue Oct 3, 2023 · 1 comment
Open

1 FAILED TEST: testDPGO.testRobustSinglePoseAveraging #2

adthoms opened this issue Oct 3, 2023 · 1 comment

Comments

@adthoms
Copy link

adthoms commented Oct 3, 2023

@yuluntian in extending testStiefelProjection:

TEST(testDPGO, testStiefelProjection) {

to cover an increased number of iterations (say j < 100):

for (size_t j = 0; j < 50; ++j) {

testRobustSinglePoseAveraging fails with the following error:

/home/alex/catkin_ws/src/dpgo/tests/testPGO.cpp:120: Failure
Expected: ((ROpt - RTrue).norm()) <= (RMaxError), actual: 2.77197 vs 0.0282838
[  FAILED  ] testDPGO.testRobustSinglePoseAveraging (2 ms)

Empirically, it seems repeat calls to Matrix::Random() within testStiefelProjection produces this error (replacing Matrix::Random() with Matrix::Identity(), for example, seems to indicate this is the case):

@adthoms
Copy link
Author

adthoms commented Oct 4, 2023

Alternatively, changing the number of iterations directly within testRobustSinglePoseAveraging to trial < 500, for example:

for (int trial = 0; trial < 50; ++trial) {

reproduces the identical error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant