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

A ConstPtr is a pointer that points to a constant object. In this case, the message itself (std_msgs::String object) is constant. In general, you wouldn't want to change the message's data, just calculate other quantities based on it.