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

build_depend for eigen3, kinetic in package.xml

asked 2016-11-13 00:37:20 -0600

Markus Bader gravatar image

Hello

I am using eigen3 in my node. So I added the following statement to my CMakeLists.txt

find_package(Eigen3 REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})

but what should I add to the package.xml, eigen3 or eigen?

<build_depend>eigen</build_depend>

or

<build_depend>eigen3</build_depend>

Greetings

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-11-13 03:56:13 -0600

gvdhoorn gravatar image

Looking at ros/rosdistro/rosdep/base.yaml, the eigen key maps to Eigen 3 (here), eigen2 maps to Eigen 2 (here) and the eigen3 mapping (here) is a bit ambiguous and incomplete (perhaps @tfoote can explain that one).

If you don't need v2, you should just depend on eigen, otherwise on eigen2.

Note btw that (at least in Indigo and Jade) in addition to build_depending on eigen, you should also add a build_depend on cmake_modules to be able to use find_package(Eigen3 ..), as that package provides the find script for it.

edit flag offensive delete link more

Comments

Thanks that way the answer I was looking for.

Markus Bader gravatar image Markus Bader  ( 2016-11-13 23:33:38 -0600 )edit

The eigen3 target looks to be a sweeping gentoo fixup followed by a sweeping fedora fedora fixup. gentoofedora

tfoote gravatar image tfoote  ( 2016-11-14 16:40:38 -0600 )edit
1

They should be merged into the eigen target and eigen3 removed since that's the one used for all the other platforms. https://github.com/ros/rosdistro/pull...

tfoote gravatar image tfoote  ( 2016-11-14 16:41:22 -0600 )edit

Question Tools

Stats

Asked: 2016-11-13 00:37:20 -0600

Seen: 3,786 times

Last updated: Nov 13 '16