FastDDS v3 TypeObject and its dependencies requirement to create a Dynamic type at remote side #5221
-
There are no examples for Typelookup service. I want to know how do I deserialize a topic sample whos type is dependent of other types. Do I only need the typeobject for that type only and register or need all the dependent types and its dependent and register. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @arnabgho81, If using Fast-DDS 2.x , you may have a look at this example which uses Typelookup service. However, this version does not support complex types with dependencies as it is your case, so I encourage you to use Fast-DDS 3.x instead where the xtypes module has completely been refactored. You may have a look at this example showing how to send and receive xtypes via TypeLookup service. Answering your question, no it is not required to manually register dependencies. If the type support is generated with Fast-DDS-Gen from an idl file (in which both the "main" type and its dependencies are specified), it suffices to register ( Please feel free to check the following section for more details on remote types discovery in the new xtypes implementation. For your information, we also introduced a couple of utility functions meant to ease the interaction with dynamic types and data: serialization utilities Regarding your last question, the next DDS-Record-Replay release (working with Fast-DDS 3.0.1) is scheduled for next week. Best regards. |
Beta Was this translation helpful? Give feedback.
Hi @arnabgho81,
If using Fast-DDS 2.x , you may have a look at this example which uses Typelookup service. However, this version does not support complex types with dependencies as it is your case, so I encourage you to use Fast-DDS 3.x instead where the xtypes module has completely been refactored. You may have a look at this example showing how to send and receive xtypes via TypeLookup service.
Answering your question, no it is not required to manually register dependencies. If the type support is generated with Fast-DDS-Gen from an idl file (in which both the "main" type and its dependencies are specified), it suffices to register (
DomainParticipant::register_type
) the type for which d…