ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.