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

Hello,

I understand what you mean, try this :

ros::NodeHandle n; 
ros::Subscriber sub;

sub = n.subscribe("yournode", 1, &YourPlugin::Callback, this);

You wont need static method using it like that ( usable with a class )