ROuting Service Output Type Deduction

4 posts / 0 new
Last post
Offline
Last seen: 1 year 7 months ago
Joined: 09/19/2021
Posts: 9
ROuting Service Output Type Deduction

Hi,

I'm using the routing service with Connext DDS 6.0.1. Instead of strongly typing the input/output types, I would like to use the reflection features of the routing service, which deduces the types from the types given in the xml file.

I can currently do this without problem with the plugins written in C. However in C++, I'm having difficulty transferring the

rti::routing::TypeInfo&output_type_info
 
to the provided transform function of my class, which extends rti::routing::transf::DynamicDataTransformation
 
 
 
 
When the MyTransformation constructor is called, I can confirm that the output type is correctly deducted.

However, when I inspect 
transform_output_type within the "transform" function of MyTransformation at runtime, the contents do not match whats shown in the constructor. (transport_output_type prints "short" whereas my data type is actually struct.




Is there something obvious that Im missing here?
Thanks
Howard's picture
Offline
Last seen: 2 days 14 hours ago
Joined: 11/29/2012
Posts: 567

Hi Goksan,

I believe that your project has a support contract with RTI.  Johan Sjoberg is the person at your company that has access to the RTI Customer Portal where support issues like the one you report above can be submitted.

This forum is supported by community members such as yourself and so, you'll find that getting answers through RTI support will be more direct and efficient.

The question that you posted is fairly deep into APIs that most community members won't be familiar with...

Offline
Last seen: 1 year 7 months ago
Joined: 09/19/2021
Posts: 9

Hi,

The problem was about defining the transform_output_type as reference. Changing it to normal type resolves the issue.

THanks

Howard's picture
Offline
Last seen: 2 days 14 hours ago
Joined: 11/29/2012
Posts: 567

Good to know that you were able to resolve your issue.  Thanks for posting!