Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 99

publish c structs

$
0
0
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](http://wiki.ros.org/roscpp/Overview/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

Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>