-
Notifications
You must be signed in to change notification settings - Fork 768
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
Windows Tests #1109
Merged
Merged
Windows Tests #1109
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6e6c647
basis module tests pass
varunagrawal b13a219
update METIS test for _WIN32
varunagrawal 7712158
sfm tests pass
varunagrawal beeb91a
symbolic tests pass
varunagrawal 865a7ba
navigation tests passing
varunagrawal 2e5bdcd
fixed dllexport issues in nonlinear, only tests failing
varunagrawal 38425f1
fixed dllexport issues in slam, only tests failing
varunagrawal 1e1e2c2
move Line3 transformTo definition to header to resolve ambiguity
varunagrawal fcd418a
fixed dllexport issues in geometry, only tests failing
varunagrawal 566c7b9
Fix discrete module
varunagrawal 770587d
documentation updates
varunagrawal d860e39
suppress spurious warnings
varunagrawal 9a234a2
build (almost) all GTSAM test targets in CI
varunagrawal 12d1d21
formatting updates
varunagrawal 6fe55af
comment out gtsam_unstable test target
varunagrawal 1545d90
Move transformTo declaration to the top to avoid ambiguous linkage
varunagrawal 57a51a7
Assignment accidentally used in place of equality
mikesheffler e4733e7
* Repaired actual test (needs '49', not '54'?) and LONGS_EQUAL instea…
mikesheffler 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
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ namespace gtsam { | |
* @addtogroup geometry | ||
* \nosubgrouping | ||
*/ | ||
class Line3 { | ||
class GTSAM_EXPORT Line3 { | ||
private: | ||
Rot3 R_; // Rotation of line about x and y in world frame | ||
double a_, b_; // Intersection of line with the world x-y plane rotated by R_ | ||
|
@@ -146,7 +146,30 @@ class Line3 { | |
*/ | ||
Line3 transformTo(const Pose3 &wTc, const Line3 &wL, | ||
OptionalJacobian<4, 6> Dpose = boost::none, | ||
OptionalJacobian<4, 4> Dline = boost::none); | ||
OptionalJacobian<4, 4> Dline = boost::none) { | ||
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. I had trouble with definitions in headers. Should be inline? But I don't understand why we can't just export here and leave definition in .cpp? |
||
Rot3 wRc = wTc.rotation(); | ||
Rot3 cRw = wRc.inverse(); | ||
Rot3 cRl = cRw * wL.R_; | ||
|
||
Vector2 w_ab; | ||
Vector3 t = ((wL.R_).transpose() * wTc.translation()); | ||
Vector2 c_ab(wL.a_ - t[0], wL.b_ - t[1]); | ||
|
||
if (Dpose) { | ||
Matrix3 lRc = (cRl.matrix()).transpose(); | ||
Dpose->setZero(); | ||
// rotation | ||
Dpose->block<2, 3>(0, 0) = -lRc.block<2, 3>(0, 0); | ||
// translation | ||
Dpose->block<2, 3>(2, 3) = -lRc.block<2, 3>(0, 0); | ||
} | ||
if (Dline) { | ||
Dline->setIdentity(); | ||
(*Dline)(0, 3) = -t[2]; | ||
(*Dline)(1, 2) = t[2]; | ||
} | ||
return Line3(cRl, c_ab[0], c_ab[1]); | ||
} | ||
|
||
template<> | ||
struct traits<Line3> : public internal::Manifold<Line3> {}; | ||
|
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
Oops, something went wrong.
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.
Why ?