org.ros.internal.node.topic
Class RepeatingPublisher<MessageType>

java.lang.Object
  extended by org.ros.internal.node.topic.RepeatingPublisher<MessageType>

public class RepeatingPublisher<MessageType>
extends java.lang.Object

Repeatedly send a message out on a given Publisher.


Constructor Summary
RepeatingPublisher(Publisher<MessageType> publisher, MessageType message, int frequency, java.util.concurrent.ScheduledExecutorService executorService)
           
 
Method Summary
 void cancel()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatingPublisher

public RepeatingPublisher(Publisher<MessageType> publisher,
                          MessageType message,
                          int frequency,
                          java.util.concurrent.ScheduledExecutorService executorService)
Parameters:
publisher -
message -
frequency - the frequency of publication in Hz
Method Detail

start

public void start()

cancel

public void cancel()