ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You need a local variable in your callback. Change it to:
float sum = msg->data + 5;
ROS_INFO("Updated Sum: [%f]", sum);