Rosserial Serialize Example [closed]

asked 2021-09-23 03:45:41 -0500

jacklu333333 gravatar image

updated 2021-09-23 23:32:26 -0500

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?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by jacklu333333
close date 2021-09-24 03:57:40.668879


Quick comment: as a rosserialuser 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 the rosserial 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.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-23 05:19:06 -0500 )edit

Ok, thank you, I will dig in, and sorry for asking multiple questions within the same post.

jacklu333333 gravatar image jacklu333333  ( 2021-09-23 23:31:43 -0500 )edit

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.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-24 02:42:15 -0500 )edit

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.

jacklu333333 gravatar image jacklu333333  ( 2021-09-24 03:57:24 -0500 )edit