diff --git a/geometry/tests/testPose2.cpp b/geometry/tests/testPose2.cpp index 6588890d2..d8aa24b9f 100644 --- a/geometry/tests/testPose2.cpp +++ b/geometry/tests/testPose2.cpp @@ -3,9 +3,15 @@ * @brief Unit tests for Pose2 class */ -#include -#include +#include #include + +#include +#include +#include // for operator += +using namespace boost::assign; + +#include #include #include #include @@ -476,6 +482,23 @@ TEST( Pose2, range ) EXPECT(assert_equal(expectedH2,actualH2)); } +/* ************************************************************************* */ +typedef pair Point2Pair; +boost::optional align(const vector &) { + return boost::none; +} + +TEST(Pose2, align) { + vector correspondences; + Point2Pair p1(make_pair(Point2(0,0), Point2(10,0))); + Point2Pair p2(make_pair(Point2(20,20), Point2(30,20))); + correspondences += p1, p2; + + Pose2 expected(Rot2::fromAngle(0), Point2(0,0)); + boost::optional actual = align(correspondences); + //EXPECT(assert_equal(expected, *actual)); +} + /* ************************************************************************* */ int main() { TestResult tr;