You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this package is built with ROS2 Humble from source (specifically on the Orin AGX with Ubuntu 20.04 and Jetpack 5.0.2), the includes ends up located at /opt/ros/humble/install/include/pluginlib/pluginlib/* rather than at /opt/ros/humble/install/include/pluginlib/*. This breaks imports which are used in the provided files. I specifically ran into issues with importing pluginlib/class_loader.hpp with another package, which failed and said that the file couldn't be found. After changing my include to pluginlib/pluginlib/class_loader.hpp, the error changed to reference when class_loader.hpp was attempting the import for pluginlib/class_desc.hpp which cannot be found.
I believe this is likely due to some changes/differences with CMakeList.txt which exist on the Humble branch but are significantly different on the Foxy branch. My packages were able to successfully utilize pluginlib before migrating from ROS Foxy, and I can't directly speak to how this installation looks when installed with APT packages, but the solution looks to be as simple removing the extra nested pluginlib directory from the /opt/ros/humble/install/include folder. I don't know enough about CMakeLists.txt structuring to know how to propose a true solution. If there's any other useful info I can provide let me know and I'm happy to provide it.
The text was updated successfully, but these errors were encountered:
I found the solution to my issue, it was actually not related to pluginlib but to my plugin package not having pluginlib in the ament_target_dependencies. This was unchanged from a Foxy implementation that was working, so I'm unsure why I didn't encounter this error earlier.
When this package is built with ROS2 Humble from source (specifically on the Orin AGX with Ubuntu 20.04 and Jetpack 5.0.2), the includes ends up located at
/opt/ros/humble/install/include/pluginlib/pluginlib/*
rather than at/opt/ros/humble/install/include/pluginlib/*
. This breaks imports which are used in the provided files. I specifically ran into issues with importingpluginlib/class_loader.hpp
with another package, which failed and said that the file couldn't be found. After changing my include topluginlib/pluginlib/class_loader.hpp
, the error changed to reference when class_loader.hpp was attempting the import forpluginlib/class_desc.hpp
which cannot be found.I believe this is likely due to some changes/differences with CMakeList.txt which exist on the Humble branch but are significantly different on the Foxy branch. My packages were able to successfully utilize pluginlib before migrating from ROS Foxy, and I can't directly speak to how this installation looks when installed with APT packages, but the solution looks to be as simple removing the extra nested pluginlib directory from the /opt/ros/humble/install/include folder. I don't know enough about CMakeLists.txt structuring to know how to propose a true solution. If there's any other useful info I can provide let me know and I'm happy to provide it.
The text was updated successfully, but these errors were encountered: