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

Revision history [back]

Not sure if this is the problem, but usually my callbacks take a ConstPtr type, e.g.,

void imageCallback (const sensor_msgs::ImageConstPtr& img)

Also the callable can be a functor or function pointer.

Maybe for these reasons type deduction isn't possible in general.