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

You should do the publishing after you processed the data, i.e. in your example in the image callback. There is no real need to get that back to the main function.