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

bfl on groovy, catkin_make errors and compile errors

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

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:

  bflConfig.cmake
  bfl-config.cmake

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
0

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

SebastianRiedel gravatar image

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

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
0

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

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)
include_directories(${EIGEN_INCLUDE_DIRS})
add_definitions(${EIGEN_DEFINITIONS})

Any ideas?

edit flag offensive delete link more

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 453 times

Last updated: May 31 '13