Ask Your Question
0

Orocos bfl for indigo,

asked 2015-02-16 10:18:44 -0500

Porti77 gravatar image

updated 2015-02-24 07:35:39 -0500

Hi,

I've tried including BFL into catkin using both

--   package 'orocos-bfl' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  navigation-indigo-devel/robot_pose_ekf/CMakeLists.txt:6 (pkg_check_modules)

Any ideas?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-13 01:42:57 -0500

fergs gravatar image

Are you just trying to compile robot_pose_ekf? If so, try installing ros-indigo-bfl (sudo apt-get install ros-indigo-bfl) as you might be simply missing the dependency.

If you're trying to build your own package against BFL, check out the CMake in robot_pose_ekf: https://github.com/ros-planning/navig... as it definitely builds against BFL in indigo, and as far as I know, it is the only released package that depends on BFL.

edit flag offensive delete link more

Comments

I'm trying to install robot_pose_ekf to Mac OS. I can just clone it from gitbut and catkin_make it. Please see my question at orocos-bfl. Thank you.

zurish gravatar imagezurish ( 2015-03-13 11:25:24 -0500 )edit
1

answered 2015-02-24 07:33:16 -0500

I just catkinized a package that I had been using a few years back, and I simply put bfl as a package and build dependency in my package.xml, and then I followed the directions on Using BFL in ROS with Catkin Builds and everything compiled successfully.

To really help you debug your error, we'd need to see your package.xml and CMakeLists.txt. Although based on the experience I just described, and the first line of your error, it seems that something is referring to orocos-bfl instead of bfl.

edit flag offensive delete link more

Comments

Hi there, I'm not sure where to add the lines in the second section of the link you provided .To the CMakeLists.txt who uses orocos-bfl? Or to orocos-bfl's CMakeLists.txt? Or somewhere else? Thank you.

zurish gravatar imagezurish ( 2015-03-12 15:13:09 -0500 )edit

That would be the CMakeLists.txt in your ROS package.

jarvisschultz gravatar imagejarvisschultz ( 2015-03-12 19:03:46 -0500 )edit
0

answered 2015-03-12 22:58:19 -0500

zurish gravatar image

updated 2015-03-12 23:35:49 -0500

Hi jarvisschultz! Please forgive my ignorance. I'm new to ROS. Here is how I understand this:

   1 find_package(PkgConfig)
   2 
   3 pkg_check_modules(BFL REQUIRED bfl)
   4 
   5 message("BFL include dirs:" ${BFL_INCLUDE_DIRS})
   6 message("BFL library dirs:" ${BFL_LIBRARY_DIRS})
   7 
   8 include_directories(${BFL_INCLUDE_DIRS})
   9 link_directories(${BFL_LIBRARY_DIRS})
  10 
  11 [..]
  12 
  13 # for every target using BFL:
  14 target_link_libraries(your_executable ${BFL_LIBRARIES})

I just insert the above code from line.1 to line.9 to the top-level CMakeLists.txt in src folder in which all of ROS packages reside. And the line.14 should be in the CMakeLists.txt of the specific package which uses bfl(which is robot_pose_ekf in my case). Is this right? And my question is I'm not sure in what detailed line in the txt file(s) should I insert them. Thank you.

edit flag offensive delete link more

Comments

2

Please update your original question with this. Use answers only to actually answer the question (this is not a forum).

Also: if by top-level CMakeLists.txt you mean the one at /path/to/catkin_ws/src/ then you should not do that. Add everything to the CMakeLists.txt of your own package.

gvdhoorn gravatar imagegvdhoorn ( 2015-03-13 03:01:32 -0500 )edit

@gvdhoom

Yes , I asked as a question at orocos-bfl. Sorry about that. I tried to add everything to the CMakeLists.txt of the package I want to install(robot_pose_ekf), but it does not work. Thank you.

zurish gravatar imagezurish ( 2015-03-13 11:17:29 -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

Stats

Asked: 2015-02-16 10:18:44 -0500

Seen: 2,224 times

Last updated: Mar 13 '15