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

Revision history [back]

click to hide/show revision 1
initial version

subscribe has direct support for class members as callbacks. So I suggest making callBackFunc a class method of Platform and following the instructions in the tutorial: http://wiki.ros.org/roscpp_tutorials/Tutorials/UsingClassMethodsAsCallbacks

subscribe has direct support for class members as callbacks. So I suggest making callBackFunc a class method of class Platform and following the instructions in the tutorial: http://wiki.ros.org/roscpp_tutorials/Tutorials/UsingClassMethodsAsCallbacks

subscribe has direct support for class members as callbacks. So I suggest making callBackFunc a method of class Platform and following the instructions in the tutorial: http://wiki.ros.org/roscpp_tutorials/Tutorials/UsingClassMethodsAsCallbacks

Edit: Ooops... didn't read properly, your callback is alreay member of class Scribe. Check out the answer by @paulbovbel and make sure to remove the last this paramter in the subscribe call, because you already supply it in via bind.