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

Revision history [back]

this is in the wrong place:

image_sub = transport.subscribeCamera("/camera/image_raw", 1, boost::bind(&Optical_Flow::flowcallback, this, _1, _2, cv_ptr_prev));

this is in the wrong place:

image_sub = transport.subscribeCamera("/camera/image_raw", 1, boost::bind(&Optical_Flow::flowcallback, this, _1, _2, cv_ptr_prev));

I have a complete code example in my answer to http://answers.ros.org/question/233450/boost-bind-additional-arguments-to-camerasubscriber-class-method-callback/