Problem with optional parameter in sequence

2 posts / 0 new
Last post
Offline
Last seen: 4 years 6 days ago
Joined: 08/25/2015
Posts: 32
Problem with optional parameter in sequence

Hi,

it looks like the rti tools have some problems with optional parameters in sequences. With this idl, rtiadminconsole and rtiroutingservice are not able to subscribe to the topic:

struct substruct

{

long substructId; //@Optional

};

struct ordered {

long id; //@key

sequence <substruct,10> substructSequence;

};

rtiadminconsole gives me this warning:

- RTICdrTypeObjectMember_equals:members are not equal: members have different flags: substructId (ID=0)

- RTICdrTypeObjectTypeLibraryElement_equals:types are not equal: substruct, substruct

- RTICdrTypeObjectMember_isStronglyAssignable:members are not assignable: member types are not strongly assignable: substructSequence (ID=1)

- RTICdrTypeObjectStructureType_is_assignable:types are not assignable: structures are not assignable: ordered, ordered

As soon as I remove the @optional, all is working fine...

 I'm using rti connext 5.2.3.6

 

Thx,

Christian

sara's picture
Offline
Last seen: 1 year 4 months ago
Joined: 01/16/2013
Posts: 128

Hi Christian,

I think Support already followed up with you. But I'll answer you for the record.
You run into a known issue. It will be fixed in the next major release (5.3), scheduled for end of Q2.
In the meanwhile, you can workaround this by not sending the TypeCode/TypeObject with the following QoS in the Participant:

<resource_limits> 
<type_code_max_serialized_length>0</type_code_max_serialized_length> 
</resource_limits> 

Thanks,
Sara