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

Revision history [back]

You need to pass a pointer to your class object. For example, something like

  goalReciever = n.subscribe("goalString", 100, &QNode::callback, this);

See the roscpp docs for details on valid callback signatures.