Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone in to catkin_ws and build #972

Closed
micko-plz opened this issue Nov 28, 2019 · 3 comments
Closed

Clone in to catkin_ws and build #972

micko-plz opened this issue Nov 28, 2019 · 3 comments

Comments

@micko-plz
Copy link

Hi all,
Is it possible to build pinocchio directly in the catkin workspace using catkin build, whilst also building my own catkin packages which depend on pinocchio? I'm currently having some troubles with it and what seem like suitable edits to the CMakeLists.txt file of my own ros/catkin packages not working out. Pinocchio seems to build correctly, but my own package fails with a CMake error and output:

  By not providing "Findpinocchio.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "pinocchio", but CMake did not find one.

  Could not find a package configuration file provided by "pinocchio" with
  any of the following names:

    pinocchioConfig.cmake
    pinocchio-config.cmake

  Add the installation prefix of "pinocchio" to CMAKE_PREFIX_PATH or set
  "pinocchio_DIR" to a directory containing one of the above files.  If
  "pinocchio" provides a separate development package or SDK, be sure it has
  been installed.

Thank you in advance for your time,
Michael

@jcarpent
Copy link
Contributor

Dear @micko-plz,
I think the best candidate to answer your issue is @wxmerkt. Hope he will have time for it.
Best,

Justin

@wxmerkt
Copy link
Member

wxmerkt commented Nov 28, 2019

HI @micko-plz,
Yes, you can build pinocchio in a catkin workspace and have packages depend on it - we do this quite a lot internally. How are you trying to include Pinocchio?

Note: This is a 3rd party package built with catkin, i.e., you cannot do find_package(catkin REQUIRED COMPONENTS pinocchio), but you can use PkgConfig (CMake should be possible soon, but I havent tested it yet):

find_package(PkgConfig REQUIRED)
pkg_check_modules(pinocchio REQUIRED pinocchio)

and then continue to use the defined variables such as pinocchio_INCLUDE_DIRS, pinocchio_CFLAG_OTHERS, etc.

An example is here: https://github.com/ipab-slmc/exotica/pull/675/files

Any further questions, please let me know!

Cheers,
Wolfgang

@micko-plz
Copy link
Author

micko-plz commented Nov 28, 2019

That did the trick, wonderful. I was previously attempting the include using :

find_package (pinocchio REQUIRED)

But all sorted now, thank you @jcarpent @wxmerkt for the quick response.

All the best,
Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants