diff --git a/src/client_node.py b/src/client_node.py index 83aed74..6136684 100755 --- a/src/client_node.py +++ b/src/client_node.py @@ -115,7 +115,8 @@ def modify_stamped_message(self, message): message.header.frame_id.count("/") > 1): return message if message.header.frame_id not in self.global_frames: - if (message.header.frame_id.find("/") <= 0 and + if (len(message.header.frame_id) > 0 and + message.header.frame_id.find("/") <= 0 and message.header.frame_id.count("/") <= 1): if message.header.frame_id[0] != "/": message.header.frame_id = "/" + message.header.frame_id