mutable

7 posts / 0 new
Last post
Offline
Last seen: 1 week 5 days ago
Joined: 09/10/2022
Posts: 60
convert a Data with a mutable DataType to a data With another mutable DataType

Hello.


I know that I can convert samples of a DataType to a DynamicData with rti::core::xtypes::convert function.
Also I know that it's possible to convert that DynamicData to the DataType vice versa.

The question is that is it possible to convert DynamicData that created from a mutable DataType, to a DynamicData of another mutable DataType?
Is converting between datas of mutable DataTypes is possible just by sending data by DataWriter of TypeA and receiving data by DataReader of TypeB OR converting is also possible in code?

2 posts / 0 new
Last post
Offline
Last seen: 3 years 1 month ago
Joined: 09/01/2022
Posts: 1
How Can I Combine two datareader's data into one data

------ IDL --------------------

@mutable @autoid
struct A{
long x;
};
@mutable @autoid
struct B{
string msg;
};
@mutable @autoid
struct Both{
@optional long x;
@optional string msg;
};

---------------------------------

type struct A 1 Publisher, type struct B 1 Publisher, type struct Both 1 Subscriber

I send A data and B data each Publishers and Receive thier eache datas type struct Both 1 Subscriber. ( Their Topic is same )

6 posts / 0 new
Last post
Offline
Last seen: 9 years 1 month ago
Joined: 01/20/2015
Posts: 6
Topic Aggregation

Is it possible two aggregate two topics in one topic.

Suppose there is topic TOPIC_T1 with

STRUCT_T1

{

int x; //@key;

int y;

int z;

}

topic TOPIC_T2 with

STRUCT_T2

{

int x; //@key

int a;

int b;

}

topic TOPIC_T3

{

int x; //@key

int y;

int z;

int a;

int b;

}

datawriter1 is publishing TOPIC_T1 , datawriter2  is publishing TOPIC_T2 and datareader is subscribing TOPIC_T3.

Subscribe to RSS - mutable