Fixed minroa gent error

This commit is contained in:
Guillermo 2021-07-30 12:55:36 +02:00 committed by bernat
parent dca7cc3f8d
commit 301445eb35
1 changed files with 7 additions and 3 deletions

View File

@ -85,10 +85,14 @@ def is_within_distance(target_transform, reference_transform, max_distance, angl
if norm_target < 0.001: if norm_target < 0.001:
return True return True
# Further than the max distance
if norm_target > max_distance: if norm_target > max_distance:
return False return False
if angle_interval: # We don't care about the angle, nothing else to check
if not angle_interval:
return True
min_angle = angle_interval[0] min_angle = angle_interval[0]
max_angle = angle_interval[1] max_angle = angle_interval[1]