ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
2 | No.2 Revision |
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
3 | No.3 Revision |
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.