Source code for morse.sensors.clock

import logging; logger = logging.getLogger("morse." + __name__)
import morse.core.sensor

[docs]class Clock(morse.core.sensor.Sensor): """ This sensor returns the current time, measured by the robot (in s). """ _name = "Clock" def __init__(self, obj, parent=None): """ Constructor method. """'%s initialization' % # Call the constructor of the parent class morse.core.sensor.Sensor.__init__(self, obj, parent)'Component initialized, runs at %.2f Hz', self.frequency)
[docs] def default_action(self): """ Do nothing, we are only interested in the 'timestamp' automatically put by sensor. """ pass