-
Notifications
You must be signed in to change notification settings - Fork 168
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
Added the ability to update CSM model state in jigsaw #4529
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
28e0ac8
Added the ability to update CSM model state in jigsaw
jessemapel 183b8ec
Added missing function docs
jessemapel c4c6290
Merge branch 'csmbundle' of github.com:USGS-Astrogeology/ISIS3 into c…
jessemapel a4463bf
Updated CSM jigsaw test to check apply
jessemapel cc89137
Wrangled up an F
jessemapel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1594,7 +1594,7 @@ TEST_F(MiniRFNetwork, FunctionalTestJigsawRadar) { | |
} | ||
|
||
|
||
TEST_F(CSMNetwork, FunctionalTestCSMNetwork) { | ||
TEST_F(CSMNetwork, unctionalTestJigsawCSM) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you put the 'F' back in? |
||
QTemporaryDir prefix; | ||
QString outCnetFileName = prefix.path() + "/outTemp.net"; | ||
|
||
|
@@ -1605,6 +1605,7 @@ TEST_F(CSMNetwork, FunctionalTestCSMNetwork) { | |
"maxits=10", | ||
"errorprop=yes", | ||
"bundleout_txt=yes", | ||
"update=yes", | ||
"csmsolveset=adjustable", | ||
"POINT_LATITUDE_SIGMA=1125", | ||
"POINT_LONGITUDE_SIGMA=1125", | ||
|
@@ -1647,7 +1648,6 @@ TEST_F(CSMNetwork, FunctionalTestCSMNetwork) { | |
"Test_B.cub, 6.65E-12, 1.41E-13, 4.70E-12, 2.875, 0.125, 3, 0.004162598, 0," | ||
" -0.0078125, 0.0078125, 6.29E-15, 0.004162598, 0, 258, -2, 256, 68.2, 0", | ||
1); | ||
|
||
compareCsvLine(line.getRow(5), | ||
"Test_D.cub, 3.96E-12, 1.31E-13, 2.80E-12, -0.125, 0.125, 2.23E-17," | ||
" 0.004162598, 0, -2.875, -0.125, -3, 0.004162598, 0, 254," | ||
|
@@ -1663,4 +1663,34 @@ TEST_F(CSMNetwork, FunctionalTestCSMNetwork) { | |
compareCsvLine(line.getRow(11), | ||
"Test_J.cub, 2.76E-12, 9.95E-14, 1.96E-12, -0.0625, 0.0625," | ||
"-2.63E-17, 0.016650391, 0, -0.03125, 0.03125, 6.23E-15, 0.016650391", 1); | ||
|
||
Cube testB(tempDir.path() + "/Test_B.cub"); | ||
CSMCamera *camB = dynamic_cast<CSMCamera*>(testB.camera()); | ||
EXPECT_NEAR(camB->getParameterValue(0), 3.0, 0.00000001); | ||
EXPECT_NEAR(camB->getParameterValue(1), 0.0, 0.00000001); | ||
EXPECT_NEAR(camB->getParameterValue(2), 256.0, 0.00000001); | ||
|
||
Cube testD(tempDir.path() + "/Test_D.cub"); | ||
CSMCamera *camD = dynamic_cast<CSMCamera*>(testD.camera()); | ||
EXPECT_NEAR(camD->getParameterValue(0), 0.0, 0.00000001); | ||
EXPECT_NEAR(camD->getParameterValue(1), -3.0, 0.00000001); | ||
EXPECT_NEAR(camD->getParameterValue(2), 256.0, 0.00000001); | ||
|
||
Cube testF(tempDir.path() + "/Test_F.cub"); | ||
CSMCamera *camF = dynamic_cast<CSMCamera*>(testF.camera()); | ||
EXPECT_NEAR(camF->getParameterValue(0), 0.0, 0.00000001); | ||
EXPECT_NEAR(camF->getParameterValue(1), 3.0, 0.00000001); | ||
EXPECT_NEAR(camF->getParameterValue(2), 256.0, 0.00000001); | ||
|
||
Cube testH(tempDir.path() + "/Test_H.cub"); | ||
CSMCamera *camH = dynamic_cast<CSMCamera*>(testH.camera()); | ||
EXPECT_NEAR(camH->getParameterValue(0), -3.0, 0.00000001); | ||
EXPECT_NEAR(camH->getParameterValue(1), 0.0, 0.00000001); | ||
EXPECT_NEAR(camH->getParameterValue(2), 256.0, 0.00000001); | ||
|
||
Cube testJ(tempDir.path() + "/Test_J.cub"); | ||
CSMCamera *camJ = dynamic_cast<CSMCamera*>(testJ.camera()); | ||
EXPECT_NEAR(camJ->getParameterValue(0), 0.0, 0.00000001); | ||
EXPECT_NEAR(camJ->getParameterValue(1), 0.0, 0.00000001); | ||
EXPECT_NEAR(camJ->getParameterValue(2), 128.0, 0.00000001); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not happy about having the dynamic_cast in BundleAdjust and not using the Observation, but attempts to use the polymorphism of the observation resulting in strange issues with the indices in the control network not matching the indices in the observations. I also ran into issues with who has the correct camera model and simultaneous open/close of the cube. This approach side-steps all of those issues at the cost of the cast happening here.