public class ClockTopicTimeProvider extends java.lang.Object implements TimeProvider
TimeProvider
for use when the ROS graph is configured for
simulation.Constructor and Description |
---|
ClockTopicTimeProvider(DefaultNode defaultNode) |
Modifier and Type | Method and Description |
---|---|
org.ros.message.Time |
getCurrentTime() |
Subscriber<rosgraph_msgs.Clock> |
getSubscriber() |
public ClockTopicTimeProvider(DefaultNode defaultNode)
public Subscriber<rosgraph_msgs.Clock> getSubscriber()
public org.ros.message.Time getCurrentTime()
getCurrentTime
in interface TimeProvider