Skip to content

Commit

Permalink
small changes so that SLOW_BUT_CORRECT_EXPMAP compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgc committed Sep 17, 2010
1 parent fdae3d6 commit 14cb0be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geometry/Pose2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace gtsam {

#ifdef SLOW_BUT_CORRECT_EXPMAP

template<> Pose2 expmap(const Vector& xi) {
Pose2 Pose2::Expmap(const Vector& xi) {
Point2 v(xi(0),xi(1));
double w = xi(2);
if (fabs(w) < 1e-5)
Expand All @@ -52,7 +52,7 @@ namespace gtsam {
}
}

Vector logmap(const Pose2& p) {
Vector Pose2::Logmap(const Pose2& p) {
const Rot2& R = p.r();
const Point2& t = p.t();
double w = R.theta();
Expand Down
2 changes: 1 addition & 1 deletion geometry/tests/testPose2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ TEST(Pose3, expmap_c)
{
EXPECT(assert_equal(screw::expected, expm<Pose2>(screw::xi),1e-6));
EXPECT(assert_equal(screw::expected, Pose2::Expmap(screw::xi),1e-6));
EXPECT(assert_equal(screw::xi, logmap(screw::expected),1e-6));
EXPECT(assert_equal(screw::xi, Pose2::Logmap(screw::expected),1e-6));
}
#endif

Expand Down

0 comments on commit 14cb0be

Please sign in to comment.