org.ros.time
Class ClockTopicTimeProvider

java.lang.Object
  extended by org.ros.time.ClockTopicTimeProvider
All Implemented Interfaces:
TimeProvider

public class ClockTopicTimeProvider
extends java.lang.Object
implements TimeProvider

A TimeProvider for use when the ROS graph is configured for simulation.


Constructor Summary
ClockTopicTimeProvider(DefaultNode defaultNode)
           
 
Method Summary
 Time getCurrentTime()
           
 Subscriber<rosgraph_msgs.Clock> getSubscriber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClockTopicTimeProvider

public ClockTopicTimeProvider(DefaultNode defaultNode)
Method Detail

getSubscriber

public Subscriber<rosgraph_msgs.Clock> getSubscriber()

getCurrentTime

public Time getCurrentTime()
Specified by:
getCurrentTime in interface TimeProvider
Returns:
the current time of the system using rostime