[ros-users] [Discourse.ros.org] [Next Generation ROS] Anonymous messages in ROS2

Dirk Thomas ros.discourse at gmail.com
Fri Feb 9 18:17:52 UTC 2018



When you use an RMW implementation which relies on statically generated types (`rmw_connext_cpp`, `rmw_opensplice_cpp`) this is not possible since it relies on code being generated and compiled for each type.

When you use an RMW implementation which supports dynamic types the mapping happens by looking at the introspection information of the message type and using an API which handles each field individually (`rmw_fastrtps_cpp`, `rmw_connext_dynamic_cpp` [this one is currently not maintained and will likely not work with the current state of ROS 2 but would need to be updated]). In that case it should be possible to pass arbitrary types to the API as long as a corresponding introspection description of the message is provided with it (which is basically an object representation of the message). We haven't tried this though so it might be "bumpy" if you go ahead with this.





---
[Visit Topic](https://discourse.ros.org/t/anonymous-messages-in-ros2/3930/2) or reply to this email to respond.




More information about the ros-users mailing list