When publishing a ConstPtr type message using no-copy communication, the message cannot be modified after publishing. This commit fixes an issue where 'clear' was being called on the contents of the event message immediately after publishing, which caused nodelets running in the same manager to receive empty event messages.
When publishing a ConstPtr type message using no-copy communication, the message cannot be modified after publishing. This commit fixes an issue where 'clear' was being called on the contents of the event message immediately after publishing, which caused nodelets running in the same manager to receive empty event messages.