Adding Galilean3 Lie group#2122
Conversation
dellaert
left a comment
There was a problem hiding this comment.
Wow, amazing! Had time to review .cpp file, not yet other things.
|
Still some stragglers, e.g., |
gtsam/geometry/Gal3.h
Outdated
| /// The type of the Lie algebra (matrix representation) | ||
| using LieAlgebra = Matrix5; | ||
|
|
||
| // Helper functions for accessing tangent vector components |
There was a problem hiding this comment.
I might put these in an anonymous namespace in the .cpp file…
There was a problem hiding this comment.
Unless we need them here, can we move them to anonymous namespace in the .cpp file?
|
@mkielo3 maybe run "make check" before you push: it will suss out remaining compilation problems. |
dellaert
left a comment
There was a problem hiding this comment.
Now CI fails because of wrapper :-) I commented on what the issue is I think.
| * TOA functor below provides a measurement function for those applications. | ||
| */ | ||
| class GTSAM_UNSTABLE_EXPORT Event { | ||
| class GTSAM_EXPORT Event { |
There was a problem hiding this comment.
TimeOfArrival might also need an EXPORT
gtsam/geometry/geometry.i
Outdated
| Event(double t, double x, double y, double z); | ||
| double time() const; | ||
| gtsam::Point3 location() const; | ||
| TimeOfArrival(); |
There was a problem hiding this comment.
You need a new class here, move missing pieces from unstable
dellaert
left a comment
There was a problem hiding this comment.
Awesome, just a few nits left and this can be merged :-)
gtsam/geometry/Gal3.h
Outdated
| /// The type of the Lie algebra (matrix representation) | ||
| using LieAlgebra = Matrix5; | ||
|
|
||
| // Helper functions for accessing tangent vector components |
There was a problem hiding this comment.
Unless we need them here, can we move them to anonymous namespace in the .cpp file?
| #else | ||
| #warning "IncrementalFixedLagSmoother was moved to the gtsam/nonlinear directory" | ||
| #endif | ||
| // #ifdef _MSC_VER |
|
|
||
|
|
||
| #include <gtsam/nonlinear/IncrementalFixedLagSmoother.h> No newline at end of file | ||
| #include <gtsam/nonlinear/IncrementalFixedLagSmoother.h> |
| NonlinearFactorGraph, Point3, Values, noiseModel) | ||
| from gtsam_unstable import Event, TimeOfArrival, TOAFactor | ||
| NonlinearFactorGraph, Point3, Values, noiseModel, Event) | ||
| from gtsam_unstable import TimeOfArrival, TOAFactor |
There was a problem hiding this comment.
TimeOfArrival should be in GTSAM now
Code follows style of NavState and implements core functionality: identity(), Hat(), Vee(), Expmap(), Logmap(), inverse(), between(), matrix(), compose(), adjointMap().
Tests are based off:
Note: derivatives of ExpMap and LogMap currently rely on numerical differentiation, which makes these tests circular.