Skip to content

Commit

Permalink
fix frame id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
a20r committed Sep 1, 2017
1 parent 53b66b2 commit 96b8879
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96b8879

Please sign in to comment.