Rosserial Serialize Example [closed]
Hi, I am using rosserial package to acquire the customized sensor data from the Arduino board. In the Arduino example, there are only std_msgs examples, but when I dig into the library, I found that there are also sensor_msgs libraries. In the sensor library, there is a virtual serialize and deserialize function for every class, Imu, in my case. I couldn't find a proper example of how to use it.
So I was wondering is there any example of how to use serialize and deserialize functions and what are they used for?
Quick comment: as a
rosserial
user you typically don't directly invoke (de)serialisation methods. That's the job of the publisher and subscriber classes in combination with the rest of therosserial
infrastructure.And finally: please don't include multiple questions in a single post. That doesn't work. This is a Q&A site, not a forum.
Ok, thank you, I will dig in, and sorry for asking multiple questions within the same post.
If you haven't found them yet, the rosserial tutorials are pretty nice. While simple, they show how to setup a basic application, which should also explain how to subscribe to and publish messages.
Thank you for your fast comment. I think I will start another post. The question is a little bit off-track. I did already go through the tutorial, but it didn't quite have the answer that I need.