Replies: 2 comments 3 replies
-
Hi Piyush, eCAL (and Iceoryx as well) work by sending raw memory blocks around. There are no "message formats" or similar (at least on on the lowest abstraction layer), but just a pointer to some memory accommodated with the size of the memory chunk. An What you will need to do is get rid of the C++ std::vector and switch to some serialization library (like protobuf) that makes sure all your data ends up in contiguous memory after serialization. You can look at the eCAL Documentation to get started with that. In protobuf you can use a You could also switch to raw C structs and manage your memory yourself. As long as you make sure all data ends up in contiguous memory, you can send it out. I wouldn't recommend this though, as it is way more work and you may discover many pitfalls like endianess, variable alignments, integer sizes etc. Kind Regards |
Beta Was this translation helpful? Give feedback.
-
hi @FlorianReimold sorry for late reply as I was trying some new things. Can we insert a vector of vector of vector(3DV) in protobuf? I tried serializing 3DV using a boost lib but sending that was also a challenge. following is my sturct which I need to convert to protobuf
I've tried some things but I'm failing to create a proto file for this sturct. The important question-> is it possible to convert this struct to proto file? else what approach should I take to send a 3DV. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to send a vector of vector using ecal. I tried this thing in iceoryx but the vector need a static values in it. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions