ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.