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

Hi,

Methods need an object they can be called with, so you have to add the object pointer when calling subscribe(). Also you need to specify the scope of RopCallback.

=>

node_listener_->subscribe( "rop_client", 1000, &RopClient::RopCallback, this);

See also The Publisher/Subscriber overview

Regards

  • jgdo -

BTW: didn't know there exists a russian gcc ;)