since this post, I did solve the problem. I don’t have time to write about it, but you may have a look to my solution here:
generic_subscription.hpp
ros2_introspection