ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.