ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please see wiki/roscpp/Overview/Publishers and Subscribers - Subscribing to a Topic - Callback Types - Class Methods: for callbacks that are methods (ie: class members) you need to provide a pointer to the object that the method should be invoked on.
For your ctor initialisation of the Subscriber
, that would be this
.
Also: you don't register methods as callbacks with this->..
.