Hello
I've searched across to find a good example that explains how to pass the data generated by another application to the publisher. I went over the examples provided in rti-workspace/5.2.3/examples/connext_dds but i'm not sure how to do this.
Basically, I have one application that continuously genrates the coordinates (say x,y,z) and I would like to pass this data as it being generated to the publisher. I can generate IDL file with the struct that contains the coordinates, but then I'm not sure how should I refer this data in write() ?
Any example would be appreciated, thank you!
Hi Stan,
Let's assume that you are using C++ (we could port this to other languages), that you have a
Coordinates
class like the following, and that the value of x, y, an z is constantly being updated.If you want to pass the value of x, y, and z to the write() method you will have to do the following:
Please, let me know if this helps.
Thanks,
Fernando,