Skip to content

Commit 9acc89d

Browse files
committed
Fix ODR violations in Navigation expressions
1 parent aa0eb11 commit 9acc89d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gtsam/navigation/expressions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ typedef Expression<Velocity3> Velocity3_;
1919

2020
namespace internal {
2121
// define getters that return a value rather than a reference
22-
Rot3 attitude(const NavState& X, OptionalJacobian<3, 9> H) {
22+
inline Rot3 attitude(const NavState& X, OptionalJacobian<3, 9> H) {
2323
return X.attitude(H);
2424
}
25-
Point3 position(const NavState& X, OptionalJacobian<3, 9> H) {
25+
inline Point3 position(const NavState& X, OptionalJacobian<3, 9> H) {
2626
return X.position(H);
2727
}
28-
Velocity3 velocity(const NavState& X, OptionalJacobian<3, 9> H) {
28+
inline Velocity3 velocity(const NavState& X, OptionalJacobian<3, 9> H) {
2929
return X.velocity(H);
3030
}
3131
} // namespace internal

0 commit comments

Comments
 (0)