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
  1. sub_ = n_.subscribe("/subscribed_topic", 1, &SubscribeAndPublish::callback, this);

if u pass &SubscribeAndPublish::callback all so like static , in this conditopn i dont want use static.

Please tell me how to solve the problem .

2 . sub = n.subscribe("/camera/depth_registered/points", 1000, boost::bind(&Example::callBack, this, _1));

this also the same.

Thanks