I am trying to publish video frames using the following IDL:
typedef sequence<octet> Pixels;
module message {
@topic
struct Image {
int width;
int height;
int bytesPerPixel;
Pixels data;
};
I would also like to send 2 image data sequences (say, raw and filtered). Instead of declaring "Pixels data2", can sequence container by declared as arrays? The typedef sequence<octet> Pixels[2]
gives errors.
Okay, so I gave this IDL to
opendds_idl
:and it accepted it:
However I decided to try to build a library with it in case the generated code was wrong, which seems to be true.
With other errors following. It seems we don't support trying to typedef an array and sequence at the same time. Replacing the typedef with two works: