ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I would either recommend you using a global publisher variable for simple nodes, or doing the publisher in a member variable. In both of these ways you would not need that pointer to publish in the callback function header.
2 | No.2 Revision |
I would either recommend you using a global publisher variable for simple nodes, or in a class doing the publisher in with a member variable. In both of these ways you would not need that pointer to publish the publisher in the callback function header.