Ask Your Question
0

Where is the message definition stored?

asked 2017-09-15 04:16:13 -0500

Mehdi. gravatar image

When a topic is advertised, are the md5 and the message definition of that message type stored somewhere accessible on the Ros server (By another node) or are they only sent with the message itself and checked every time a message is published?

Is there a way to get the message definition and the md5 without first receiving a message and without having to include the message header (working in c++)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-25 19:49:40 -0500

Dirk Thomas gravatar image

The message_definition is only exchanged when creating a TCPROS connection. For UDP transport there is no such information. Also the master doesn't store this information.

Depending on your scenario you might be able to load the message definition based on the topic type at runtime (in Python) if you can ensure that the system has the message package installed.

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

2 followers

Stats

Asked: 2017-09-15 04:16:13 -0500

Seen: 285 times

Last updated: Sep 25 '17