Skip to content
Snippets Groups Projects
Commit c8d66ec5 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

added eigen output test

parent 9347ad72
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <ArmarXCore/core/test/IceTestHelper.h> #include <ArmarXCore/core/test/IceTestHelper.h>
#include "../math/MathUtils.h" #include "../math/MathUtils.h"
#include "../math/ColorUtils.h" #include "../math/ColorUtils.h"
#include "../FramedPose.h"
using namespace armarx; using namespace armarx;
void check_close(float a, float b, float tolerance) void check_close(float a, float b, float tolerance)
...@@ -37,8 +38,21 @@ void check_close(float a, float b, float tolerance) ...@@ -37,8 +38,21 @@ void check_close(float a, float b, float tolerance)
} }
} }
BOOST_AUTO_TEST_CASE(eigenOutputTest)
{
Eigen::Vector3f v;
v << 10, 1000, -10;
std::cout << "v:\n" << v << std::endl;
armarx::Vector3 v2(v);
std::cout << "v2:\n" << v2.output() << std::endl;
FramedPose p(Eigen::Matrix4f::Identity(), "", "");
p.position->x = 100;
ARMARX_INFO << "pose:\n" << p.output();
}
BOOST_AUTO_TEST_CASE(fmodTest) BOOST_AUTO_TEST_CASE(fmodTest)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment