diff --git a/cabot_ui/cabot_ui/navigation.py b/cabot_ui/cabot_ui/navigation.py index 57b068cb..9b649283 100644 --- a/cabot_ui/cabot_ui/navigation.py +++ b/cabot_ui/cabot_ui/navigation.py @@ -164,6 +164,8 @@ def lookup_transform(self, target, source, time=None): req = LookupTransform.Request() req.target_frame = target req.source_frame = source + if not self.lookup_transform_service.wait_for_service(timeout_sec=1.0): + raise RuntimeError("lookup transform service is not available") result = self.lookup_transform_service.call(req) if result.error.error > 0: raise RuntimeError(result.error.error_string)