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

Revision history [back]

click to hide/show revision 1
initial version

ROS is a callback-based system, so on that level, the answer is that you have to do all of the processing in the callback. You can, of course, work around this by using the callback to store the image somewhere, and the working on it later, or in another thread, or something like that.

What would help people answer your question, though, is an explanation of why you don't want to do the processing in the callback function. Without knowing what you want to do, it's hard to offer concrete advice.