IDL Compilation Examples

Examples of compiling different IDL files.

Simple Structure

struct Point {
    float x;
    float y;
};

Compile:

./build/tools/idl_compiler/astutedds-idl point.idl

With Key Fields

struct SensorData {
    @key long sensor_id;
    float temperature;
    long timestamp;
};

Shapes Demo

See shapes.idl:

./build/tools/idl_compiler/astutedds-idl examples/shapes.idl output/

For more details, see the IDL Compiler Guide.