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

Revision history [back]

click to hide/show revision 1
initial version

In most cases, it's fine to re-use message objects.

if you're publishing shared pointers to messages, and subscribing within the came C++ node (or another nodelet in the same process), the pointers are passed directly, and the message should not be modified after it is published.