publish c structs
Hey guys,
I'm searching for a way to publish my own c struct. In my code I use a struct like:
struct test {
int a;
int b;
int c;
float d;
} ;
and I want a message that uses two integers and one "test". Of course I could use a message that uses five integers and one float to solve the problem but this is not a very well solution. I also tried MessagesSerializationAndAdaptingTypes of the roswiki, but either I did something wrong or it does not help with this problem.
If there is already a post with this topic I'm sorry to ask this again, but I was not able to find it.
Best
ElTonno
It would help to know what exactly you tried, in order to avoid other posters suggesting the same things. Please include some example code-snippets showing what you tried (and any errors).