diff --git a/utilities/message_filters/src/message_filters/__init__.py b/utilities/message_filters/src/message_filters/__init__.py index 999e6d9b2a..0f2bf6c968 100644 --- a/utilities/message_filters/src/message_filters/__init__.py +++ b/utilities/message_filters/src/message_filters/__init__.py @@ -156,12 +156,16 @@ def getElemBeforeTime(self, stamp): return None return older[-1] - def getLastestTime(self): + def getLatestTime(self): """Return the newest recorded timestamp.""" if not self.cache_times: return None return self.cache_times[-1] + def getLastestTime(self): + """Return the newest recorded timestamp (equivalent to `getLatestTime()`, but included for backwards compatibility).""" + return self.getLatestTime() + def getOldestTime(self): """Return the oldest recorded timestamp.""" if not self.cache_times: