Rosserial Serialize Example
Hi, I am using rosserial package to acquire the customized sensor data from the Arduino board. In the Arduino example, there are only stdmsgs examples, but when I dig into the library, I found that there are also sensormsgs 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?
Asked by jacklu333333 on 2021-09-23 03:45:41 UTC
Comments
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.
Asked by gvdhoorn on 2021-09-23 05:19:06 UTC
Ok, thank you, I will dig in, and sorry for asking multiple questions within the same post.
Asked by jacklu333333 on 2021-09-23 23:31:43 UTC
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.
Asked by gvdhoorn on 2021-09-24 02:42:15 UTC
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.
Asked by jacklu333333 on 2021-09-24 03:57:24 UTC