Ask Your Question
0

tf_eigen build error

asked 2017-12-24 02:53:21 -0500

MaximeRector gravatar image

Hi,

I'm building my workspace with catkin build but I keep getting the following error

/home/pi/ros_catkin_ws/src/mavros/mavros_extras/src/plugins/odom.cpp:20:33: fatal error: tf2_eigen/tf2_eigen.h: No such file or directory
#include <tf2_eigen/tf2_eigen.h>

tf2_eigen is in the list of packages which are done building:

Starting  >>> tf2_eigen                                                                                  
Finished  <<< roslaunch                                 [ 0.7 seconds ]                                  
Starting  >>> tf2_py                                                                                     
Finished  <<< tf2_eigen                                 [ 0.7 seconds ]

I have no idee what I did wrong because I didn't touched the odom.cpp file.

Thank you for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-24 03:20:07 -0500

MaximeRector gravatar image

updated 2017-12-24 03:20:46 -0500

Solved!

While looking at the CMakeLists.txt I saw tf2_eigen was not in the find_package list. I don't know if it needs to be there but adding it solved my problem.

find_package(catkin REQUIRED COMPONENTS
  mavros
  roscpp
  mavros_msgs
  sensor_msgs
  geometry_msgs
  std_msgs
  visualization_msgs
  urdf
  tf
  tf2_eigen
)

EDIT: Can't accept my own answer :(

edit flag offensive delete link more

Comments

Accepted for you. Now you should have enough karma to do it next time.

tfoote gravatar imagetfoote ( 2017-12-25 15:50:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-12-24 02:53:21 -0500

Seen: 155 times

Last updated: Dec 24 '17