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

Revision history [back]

Function callbacks are based on C++ functor objects. roscpp normally uses something that's compatible with the return value of boost::bind, e.g. boost::function. There are a bunch of overloaded versions of subscribe that take normal function pointers though. Internally, these methods just use boost::bind to generate the functor object. Have a look at roscpp/include/ros/node_handle.h.