From 96b8879ea91fa370694b418ada32026d626edbf6 Mon Sep 17 00:00:00 2001 From: Alexander Wallar Date: Thu, 31 Aug 2017 20:55:34 -0400 Subject: [PATCH] fix frame id bug --- src/client_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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