2.2. Define a Data Type

To distribute data using Connext Micro, you must first define a data type, then run the rtiddsgen IDL compiler. rtiddsgen will generate the type-specific support code that Connext Micro needs to publish and subscribe to that data type.

Connext Micro accepts types definitions in Interface Definition Language (IDL) format.

For instance, the HelloWorld examples provided with Connext Micro use this simple type, which contains a string “msg” with a maximum length of 128 characters, excluding the NUL terminator.

struct HelloWorld
{
    string<128> msg;
};

For more details, see Data Types.