pinocchio icon indicating copy to clipboard operation
pinocchio copied to clipboard

hpp-fcl to coal migration

Open v4hn opened this issue 1 year ago • 9 comments

hpp-fcl just finished its rebranding to coal with version 3.0.

Are there plans when and where to migrate to the new name/version?

v4hn avatar Nov 21 '24 12:11 v4hn

Hello,

Coal have a compatibility layer with hpp-fcl. So you should be able to build Pinocchio with Coal without any modification (only building Coal with -DCOAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL=ON).

We are creating the coal package on conda-forge right now and we will soon provide a pinocchio conda-forge package built with coal.

I don't know when we will stop using the hpp-fcl compatibility layer in pinocchio.

jorisv avatar Nov 21 '24 12:11 jorisv

@v4hn We will soon update the CMake files of Pinocchio to link directly to coal. I appreciate your understanding.

jcarpent avatar Nov 30 '24 10:11 jcarpent

Hi @jcarpent , when do you think you adapt the header files to include the coal parts instead of fcl?

Or does DCOAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL=ON already handle warning you receive?

Our problem: We use pinocchio for its collision in the ROS 2 environment and it might be that it treats warnings as errors... 😓

Cheers, Andreas

AndreasKuhner avatar Mar 04 '25 10:03 AndreasKuhner

@jorisv Could you answer @AndreasKuhner questions?

jcarpent avatar Mar 10 '25 10:03 jcarpent

Hello @AndreasKuhner,

when do you think you adapt the header files to include the coal parts instead of fcl?

I can't answer this question. We will switch to coal when some big changed will be merged into pinocchio. I don't know when these change will be ready.

Our problem: We use pinocchio for its collision in the ROS 2 environment and it might be that it treats warnings as errors... 😓

The hpp-fcl/coal compatibility layer use #pragma message. This is not a warning and -Werror doesn't convert it into an error (I tested that on g++11).

Can you provide some logs ?

jorisv avatar Mar 11 '25 10:03 jorisv

Sure, if you run something which is using Pinocchio via cmake -DSTRICT=ON .., you will get something like

/opt/openrobots/include/hpp/fcl/coal.hpp:13:2: error: #warning "Please update your includes from 'hpp/fcl' to 'coal'" [-Werror=cpp]
   13 | #warning "Please update your includes from 'hpp/fcl' to 'coal'"
      |  ^~~~~~~

aka 'warning' as 'error'

AndreasKuhner avatar Mar 11 '25 16:03 AndreasKuhner

Hi @AndreasKuhner,

an update of your coal installation should solve the problem. If you check the source code here, there is no more #warning. This had been changed 3 months ago. Before, there was the code that produces your issue. Hope this helps

fabinsch avatar Mar 11 '25 17:03 fabinsch

My bad, I need to update robotpkg. I'll do thit asap

nim65s avatar Mar 11 '25 17:03 nim65s

Thank you guys. This will resolve our issues for now and will be gone eventually after your next bigger release 🥳

AndreasKuhner avatar Mar 12 '25 12:03 AndreasKuhner