Dynamic Data API

5 posts / 0 new
Last post
Last seen: 1 month 2 weeks ago
Joined: 05/05/2021
Posts: 2
Dynamic Data: Binary Blob field

As part of an effort to convert a legacy system to DDS I'm working on a Routing Service Adapter that commmunicates over a socket with the legacy system. For messages that only go one place we just pull them off the wire and pull out some key fields to filter on but the message is basicly a variable length binary blob.

The .idl looks like this. 

struct LegacyEvents
int32 message_type;
sequence<char,LEGACY_BODY_MAX_LENGTH> body;

8 posts / 0 new
Last post
Last seen: 1 year 2 months ago
Joined: 11/02/2020
Posts: 4
DDS recorder plugin and DynamicData serialization

I am looking at creating a plugin for the dds recorder that can serialize dds data to XCDR2 format and send over a network stream.

I am using rti connext 6.0.1 and the modern c++ API. I can use the function to_cdr_buffer to serialize a DynamicData object but am unsure how to deserialize the byte stream?

12 posts / 0 new
Last post
Last seen: 4 years 6 months ago
Joined: 03/03/2015
Posts: 19
Sending byte array using DDS_Dynamic Data


I'm using the DDS_DynamicData feature to send data of multiple types using RTI DDS. I managed to define my dynamic data type support for simple types (primitives). However, I have more complex data types which I want to send using the DynamicData feature, like arrays, strings, structs, etc. 

I want to make the application as generic as possible, so I don't really want to create a type support for each data type, as I want to send the complex types as "byte array" or something similar. 

3 posts / 0 new
Last post
Last seen: 2 years 2 months ago
Joined: 08/13/2014
Posts: 55
Error in Serialization and Deserialization


I'm using RTI version 5.2.0 (Modern C++ API) and I sometimes get the following error in my output terminal. What is this error and what should I do? For your information, my program is a small version of recording service and I do serialization and deserialization of dynamic data and synamic type in my program. I have also brought my codes for serialization and deserialization of dynamic type below. For dynamic data serialization and deserialization, I use "to_cdr_buffer" and "from_cdr_buffer" functions respectively. 

3 posts / 0 new
Last post
Last seen: 8 years 8 months ago
Joined: 02/06/2012
Posts: 1
Dynamic Data API or IDL ? which one

In the past I have always used IDL to describe data types. Now I have a code generator which amongst other things is designed to generate the DDS related code.

One approach is to generate the Dynamic Data API code. The other is to generate IDL and then translate that.  I also want to deserialize the incoming data directly into C++ data types such as Eigen::Vector3d etc. Here are my questions

1) Do I lose anything by not using the IDL approach. i.e., is the generated code faster or is the generated when rtiddsgen is used.

Subscribe to RSS - Dynamic Data API