Create a new package that depends on slam_toolbox.
Include slam_toolbox/slam_toolbox_common.hpp or slam_toolbox/serialization.hpp to deserialize a posegraph, for example.
Attempt to compile.
Expected behavior
The toolbox types can be used in another package.
Actual behavior
It fails to compile because the imports in the headers are relative, so only slam_toolbox can be compiled. There's a comment that says "god... getting this to work in ROS2 was a real pain", so I believe that it the fix broke inter-package compatibility.
Required Info:
Steps to reproduce issue
slam_toolbox
.slam_toolbox/slam_toolbox_common.hpp
orslam_toolbox/serialization.hpp
to deserialize a posegraph, for example.Expected behavior
The toolbox types can be used in another package.
Actual behavior
It fails to compile because the imports in the headers are relative, so only
slam_toolbox
can be compiled. There's a comment that says "god... getting this to work in ROS2 was a real pain", so I believe that it the fix broke inter-package compatibility.Additional information