Question: Dynamic types with module/namespace #3061
Unanswered
AlgoryxJosef
asked this question in
Q&A
Replies: 1 comment 1 reply
-
According to Fast DDS Contributing guidelines questions are to be asked in the corresponding Discussion forum. I am going to proceed and move this issue to its proper place. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an already existing issue for this?
Expected behavior
I'm trying to achieve a message type e.g.
std_msgs::msg::dds_::Float32_
where the Float32_ is a struct.I can do this when generating from an .idl using the
module
tag:Works great (and yes, it is for talking to a ROS2 node).
I would like to get the same thing but for Dynamic Types. I know the
module
keyword is not implemented in the .xml dynamic type schema.The closest I've come is to do:
Which almost works; i get the data through to the ROS2 node, but I get an annoying warning "Error building type. The current descriptor isn't consistent".
I've also tried using a struct builder directly from C++ with:
Which does the same as the .xml situation above.
I saw another issue with a similar question, and the answer there was to, instead of using
::
, doing double underscores as__
. I've tried this but the type simply does not match with what would be generated from the .idl at the top of this issue.So my question is then; how can I get this to work? Struct in structs? Any other tricks?
Best regards,
Josef
Current behavior
Steps to reproduce
Fast DDS version/commit
aa485fc
Platform/Architecture
Windows 10 Visual Studio 2019
Transport layer
Default configuration, UDPv4 & SHM
Additional context
No response
XML configuration file
No response
Relevant log output
No response
Network traffic capture
[DYN_TYPES Error] Error building type. The current descriptor isn't consistent. -> Function eprosima::fastrtps::types::DynamicTypeBuilder::build
Beta Was this translation helpful? Give feedback.
All reactions