-1

I am using CycloneDDS c++ build.

currently, I am able to publish and subscriber primitive data types.

.idl file contains data structure

How to send an object or publish and subscribe an object in CycloneDDS?

Edited - object = both data ("state") and code ("methods")

Ðаn
  • 10,934
  • 11
  • 59
  • 95
kobi89
  • 152
  • 9
  • 1
    An object can be seen as a combination of data ("state") and code ("methods"). Are you looking for a mechanism to distribute both of those? If this is not what you are looking for or what you mean by "object" then please clarify your question. – Reinier Torenbeek Jan 15 '21 at 16:42
  • @Reinier Torenbeek yes I need to send an object --> both data ("state") and code ("methods").... as you have mentioned is it possible? – kobi89 Jan 18 '21 at 04:33
  • 1
    DDS is intended for distributing data. Distributing objects, as "their states and method implementations", is not described in any of the OMG DDS standards and not natively implemented by any of the DDS implementations, as far as I know. – Reinier Torenbeek Jan 18 '21 at 16:21
  • @Reinier Torenbeek extra question... what is TypeObject in https://www.omg.org/spec/DDS-XTypes/1.3/PDF? – kobi89 Jan 19 '21 at 08:06
  • 1
    A TypeObject is essentially a type that describes a type. It would be too long to give a full explanation here as a comment. But even though is has "Object" in its name, it does not have much to do with your original question :-) – Reinier Torenbeek Jan 19 '21 at 15:33

1 Answers1

-1

From above comment correct answer is

DDS is intended for distributing data. Distributing objects, as "their states and method implementations", is not described in any of the OMG DDS standards and not natively implemented by any of the DDS implementations

kobi89
  • 152
  • 9