Ask Your Question

Dynamic message types

asked 2013-06-25 01:09:24 -0500

mmcbroom gravatar image

updated 2014-01-28 17:17:01 -0500

ngrennan gravatar image

I am new to ROS but have experience with DDS real-time pub/sub middleware. DDS has the concept of dymanic message type registration, which allows you to define a message type at run-time rather than compile time. See section 7.5.2 in: This allows DDS clients change the message structure without recompiling the application ( i.e. by reading message structure from IDL). Is there a similar concept in ROS?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-25 01:38:26 -0500

dornhege gravatar image


Changing the structure in general would be impossible for c++ nodes. Technically that could be done for python nodes, but in that case all involved nodes would need to get that information from somewhere. I don't think there are any functionalities for doing that at runtime.

edit flag offensive delete link more


As @dornhege mentioned it is possible in python to run the generators. We have done a few prototypes of things which do this. With the modularity of nodes only the ones which want the specific message need to be restarted. So you don't need to restart the entire system, but only affected parts.

tfoote gravatar image tfoote  ( 2013-06-25 07:34:16 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-06-25 01:09:24 -0500

Seen: 695 times

Last updated: Jun 25 '13