Ask Your Question

bfl on groovy, catkin_make errors and compile errors

asked 2013-04-26 21:21:11 -0500

SebastianRiedel gravatar image

I have a strange problem with using bfl under ros groovy. I'm using the regular installed bfl package. "roscd bfl" takes me to /opt/ros/groovy/share/bfl which contains a package.xml.

Yet when I include bfl in the find_package() line of my project's CMakeLists.txt just like any other ros package, catkin_make complains:

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package bfl.

  Set bfl_DIR to the directory containing a CMake configuration file for bfl.
  The file will have one of the following names:


If I leave out bfl from the find_package() and try to include e.g.

#include "bfl/pdf/gaussian.h"

the compiler throughs an excessive amount of errors (in total >700) e.g.

/opt/ros/groovy/include/bfl/wrappers/matrix/vector_wrapper.h:60: error: reference to 'MatrixWrapper' is ambiguous

Any suggestions, ideas what could cause that behaviour?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-28 05:55:29 -0500

SebastianRiedel gravatar image

updated 2013-04-28 05:55:48 -0500

Found the problem, used Eigen in one of my classes and the Eigen namespace (Matrix type) collides with BFL. So removing

using namespace Eigen;

solved the >700 compile errors.

edit flag offensive delete link more

answered 2013-05-31 02:24:23 -0500

I have exactly the same issue, but I don't have any 'using namespace Eigen;' inside my code. However, I'm importing eigen into my CMakeLists.txt using this:

find_package(Eigen REQUIRED)

Any ideas?

edit flag offensive delete link more


as far as I see on groovy I had eigen in the find_package(catkin REQUIRED COMPONENTS ... eigen...) line in my CMakesLists.txt. If you get these massive amounts of compile errors, I'm almost certain somewhere eigen and bfl types collide. Maybe test in a separate small project how to integrate both.

SebastianRiedel gravatar image SebastianRiedel  ( 2013-05-31 10:46:03 -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


Asked: 2013-04-26 21:21:11 -0500

Seen: 330 times

Last updated: May 31 '13