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

Revision history [back]

You can certainly wrap ROS callback functions, however I can't think of an application for that approach, since you would need to provide the data the callback expects (whether subscription or request data). If you mean, can you reuse a generic function as a ROS callback, you can also use boost::bind to bind a function with arbitrary parameters.

You can certainly wrap ROS callback functions, however I can't think of an application for that approach, since you would need to provide the data the callback expects (whether subscription message or request data). request/response arguments). If you mean, can you reuse a generic function as a ROS callback, you can also use boost::bind to bind a function with arbitrary parameters.arguments.

You can certainly wrap ROS callback functions, however I can't think of an application for that approach, since you would need to manually provide the data the callback expects (whether message or request/response arguments). If you mean, can you reuse a generic function as a ROS callback, you can also use boost::bind to bind a function with arbitrary arguments.