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

Revision history [back]

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.

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.