Skip to content

Commit

Permalink
add use case to show eigen3.3 bug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Hoarau committed Sep 4, 2016
1 parent e8afa12 commit 1bf9b51
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 88 deletions.
14 changes: 10 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")

find_package(Eigen REQUIRED)
find_package(Eigen3 REQUIRED)

message("
Eigen dir : ${EIGEN3_INCLUDE_DIRS}
")

include_directories(
${Eigen_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/unsupported/
)
add_executable(lgsm test_lgsm.cpp)

add_executable(lgsm test_lgsm.cpp)
81 changes: 0 additions & 81 deletions test/cmake/FindEigen.cmake

This file was deleted.

22 changes: 19 additions & 3 deletions test/test_lgsm.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
#include <Eigen/Dense>
#include <Eigen/Lgsm>
#include <iostream>

int main(int argc, char ** argv)
{
return 0;
}
// Eigen::Displacementd a,b;
Eigen::Twistd c;
Eigen::Wrenchd d;
//
//Eigen::Vector3d test = d.getTorque();
std::cout << c.getAngularVelocity() << std::endl;
// // std::cout << d.getTorque() << std::endl;
// // std::cout << d.getForce() << std::endl;
// //
// // std::cout << a.adjoint() << std::endl;
// auto e = a*b;
//
// std::cout << "a : " << a << std::endl;
// std::cout << "b : " << b << std::endl;
// std::cout << "a*b : " << e << std::endl;

return 0;
}

0 comments on commit 1bf9b51

Please sign in to comment.