Ask Your Question

ROS2 Message Serialization Adapting Types

asked 2020-07-06 21:10:40 -0500

Levi-Armstrong gravatar image

In ROS1 it is possible to leverage your own data structure within a message shown in the wiki below. I am interested to learn if there is an equivalent process for ROS2?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-07-06 21:40:17 -0500

tfoote gravatar image

The equivalent functionality we're planning to implement is Type Masquerading, but it's still on the Roadmap: Our research showed that it was hard to match or beat the default serialization and teh cost of the extra copy initially is much less expensive compared to the serialization so custom serialization makes adapting types more work and more error prone and likely less performant. If you want high performance make sure to stay with compatible pointers to avoid interprocess communications and then you won't have to serialize.

I believe this is the latest info:

It was originally planned for this demo: and there's some sketches of approach planned at the time.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-07-06 21:10:40 -0500

Seen: 260 times

Last updated: Jul 06 '20