ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Can constants in messages be changed without troubles with respect to "old" data?

asked 2014-07-10 02:37:21 -0600

Wolf gravatar image

Hi guys,

If I change (or add/remove) fields in message files "old" messages, e. g. record in bags, can no longer be subscribed by the node using the new message description, because md5sum and stuff do no longer fit...

Now my question: What happens if I add/remove/modify constant definitions ( ) in messages? Will I still be able to use bags I recorded prior to the changes?

Thanks in advance, Wolf

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-10 14:19:08 -0600

tfoote gravatar image

You can add constants. If you remove or modify constants you will corrupt the data since the constant values are stored as the values.

Any of these will cause an MD5sum change and will require running a bag migration script to update the md5sum but it will not actually change the payload.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-07-10 02:37:21 -0600

Seen: 409 times

Last updated: Jul 10 '14