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

Force HPP-FCL bindings dependency #1005

Closed
gabrielebndn opened this issue Jan 7, 2020 · 6 comments
Closed

Force HPP-FCL bindings dependency #1005

gabrielebndn opened this issue Jan 7, 2020 · 6 comments

Comments

@gabrielebndn
Copy link
Contributor

Currently, Pinocchio Python bindings can be built:

  1. Without FCL
  2. With FCL, but without FCL bindings
  3. With FCL, including the bindings

I believe the second option is unreasonable and only adds complexity. If Python bindings are built with HPP-FCL, then HPP-FCL bindings should be enforced. Ideally, we should add something like this to the CMakeLists.txt:

IF(BUILD_PYTHON_INTERFACE AND BUILD_WITH_COLLISION_SUPPORT)
  ADD_REQUIRED_DEPENDENCY("hpp-fcl-python")
ENDIF(BUILD_PYTHON_INTERFACE AND BUILD_WITH_COLLISION_SUPPORT)

so we need a way to detect hpp-fcl Python bindings via cmake.

What do you think?

@jcarpent
Copy link
Contributor

jcarpent commented Jan 7, 2020

We cannot check FCL bindings with pkg-config. I mean this is not a standard way of doing it. In addition, we are not sure yet to get the latest FCL version on all the platforms.

@nim65s Is hpp-fcl latest release available on robotpkg?

To do it correctly, I would suggest using directly the packaging of CMake, which allows exporting additional targets, such as the Python bindings.

@gabrielebndn
Copy link
Contributor Author

gabrielebndn commented Jan 7, 2020

In addition, we are not sure yet to get the latest FCL version on all the platforms.

For this, it will be enough to do a new HPP-FCL release and then increase the minimum version required by Pinocchio. This way everybody using HPP-FCL will be forced to upgrade. We cannot think of maintaining the whole combinatorics and I do not see why anybody should want to keep old versions.

To do it correctly, I would suggest using directly the packaging of CMake, which allows exporting additional targets, such as the Python bindings.

Yes, I think this may be the correct way.

@jcarpent
Copy link
Contributor

jcarpent commented Jan 8, 2020

Changing the minimal version number is indeed in the pipe. As I mentioned previously,I’m waiting the update from robot from robotpkg first. I will close the issue and I will take care of all it soon.

@jcarpent jcarpent closed this as completed Jan 8, 2020
@nim65s
Copy link
Contributor

nim65s commented Jan 8, 2020

On robotpkg, hpp-fcl is on v1.2.1. The current latest is 1.2.2. I'll update it.

@nim65s
Copy link
Contributor

nim65s commented Jan 10, 2020

@jcarpent 1.2.2 is available

@jcarpent
Copy link
Contributor

@nim65s Thanks a lot!

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