Skip to content

Commit

Permalink
fix(perception_replyer): fix dying when no traffic signals
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Mar 11, 2024
1 parent e90db5d commit c06e1e0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def kill_online_perception_node(self):
pass

def binary_search(self, data, timestamp):
if not data:
return None

if data[-1][0] < timestamp:
return data[-1][1]
elif data[0][0] > timestamp:
Expand Down

0 comments on commit c06e1e0

Please sign in to comment.