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
Is there going to be a DDSGen for this library that can read a idl, xml and produce a rust crate from it? If this would be included it looks like dust-dds has there own and that code might be able to be lifted in order to facilitate this. Workspaces should also likely be used.
Such a code generator is not on the roadmap, as you seem to be the first one to ask for it. So far most of our use cases have used fairly few and simple message types, so coding by hand has been easy enough.
However, the idea is good, and a generator should be fairly straightforward to implement. If you decide to do it, please submit a PR.
There is already a similar generator in ros2-client, but it uses ROS2 .msg definitions as source.
CDR Sequence type maps to Vec in Rust.
CDR Array maps to a fixed-length array in Rust.
CDR String maps to Rust String, although this is slightly wrong. Rust Strings must be valid UTF-8, whereas CDR Strings may not be. This could be circumvented by mapping to e.g. Vec<u8> instead.
Is there going to be a DDSGen for this library that can read a idl, xml and produce a rust crate from it? If this would be included it looks like dust-dds has there own and that code might be able to be lifted in order to facilitate this. Workspaces should also likely be used.
https://github.com/s2e-systems/dust-dds
The text was updated successfully, but these errors were encountered: