Open ahoarau opened 6 years ago
The std::vector<double>
could even be hidden in gen.addArrayType
to be able to transform to geometry_msgs, tf msgs, eigen, etc.
Hi, this is an interesting idea ! Adding support for Eigen is on the todo list since a while (something similar to rosparam_shortcuts) however I couldn't get started due to a lack of time. Your proposal (use of a lambdas) is interesting in that it generalizes well, however I'm concerned by the implications in terms of dependencies (missing includes etc) that it adds. Maybe you could propose some proof-of-concept implementation so that we can discuss it further and see how rosparam_handler could be made even more generic ! Cheers.
Includes could be added as an extra argument (easy), but you should make sure to link against the said library. Making sure this happens is much more difficult. Maybe out of scope as well.
That would really awesome if we could have something like this :
That would generate something like :