Skip to content

Commit

Permalink
Alright then, teb_obstacle is trully blacked now
Browse files Browse the repository at this point in the history
  • Loading branch information
PhileasL committed Feb 26, 2021
1 parent c9739f9 commit ded9c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigation/teb_obstacles/teb_obstacles/teb_obstacles.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ def enemies_subscription_callback(self, msg):
"""Identify the enemy marker in assurancetourix marker_array detection
set the dynamic obstacle for teb_local_planner"""
for enemy_marker in msg.markers:
if enemy_marker.id <= 10: # >10 are predicted markers
if enemy_marker.id <= 10: # >10 are predicted markers
marker_stored = False
for index in range(2):
if self.enemies_markers_ids[index] == enemy_marker.id:
self.set_obstacle(index+1, enemy_marker)
self.set_obstacle(index + 1, enemy_marker)
marker_stored = True
if not marker_stored:
if self.enemies_markers_ids[0] == 0:
Expand Down

0 comments on commit ded9c98

Please sign in to comment.