Service to tell an image publisher to continuously start / stop publishing?
Hi,
So the GetPolledImage service from the polled_camera package ( http://wiki.ros.org/polled_camera ) makes a single request to the image publisher.
Is there another "core" ROS service similar to GetPolledImage that tells the image publisher to continuously publish at N Hz (ie StartPollImage) until told to stop (perhaps via a StopPollImage service)?
Or do I just need to roll, create my own (trying not to reinvent the wheel)?
(edit 1/21) - I've been asked to give my use case. I have an IP Camera and a ROS node that can HTTP request an image from the IP Camera. A Start/StopPollImage can tell the node when to start/stop fetching from the IP Camera rather than just continuously fetch from the IP Camera regardless of who's subscribed. Hope this makes sense. Happy to further clarify.
Thanks! Jack
I'm not saying there aren't valid use-cases for it, but can you provide a bit more context to see whether another approach might solve your problem as well? Know that ROS does not use network bandwidth if there are no subscriptions, and that a publisher can inquire about the nr of subscribers.
No prob! Edit will edit my main post with use case.