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

Revision history [back]

Just in case somebody is wondering why it doesn't compile, In my case the accepted answer doesn't work and I have to do as follows:

sub = n.subscribe("chatter", 1000, &Listener::callback, this);