ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The problem is that you are missing the dependency on eigen in manifest.xml.

You actually do not need FindEigen.cmake. The simplest (however incompatible to fuerte) way in electric is to use the ROS package eigen. It is a very simple dummy package that only exports the correct compiler/linker flags for linking against eigen. If you want to use it, just add

<depend package="eigen" />

to your manifest file and get rid of FindEigen and all other eigen related things in your CMakeLists.txt.

If you want to make your code future proof, I suggest to use pkg-config in your CMakeLists to find eigen instead of the FindEigen thing. For instance:

find_package(PkgConfig REQUIRED)
pkg_search_module(EIGEN REQUIRED eigen3)

include_directories(${EIGEN_INCLUDE_DIRS})
link_directories(${EIGEN_LIBRARY_DIRS})