Skip to content

Commit 209a998

Browse files
committed
chore: delete magic number
1 parent 8157552 commit 209a998

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

driving_log_replayer/scripts/traffic_light_evaluator_node.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252

5353

5454
class TrafficLightEvaluator(DLREvaluator):
55-
MAX_DISTANCE_THRESHOLD = 202.0
56-
5755
def __init__(self, name: str) -> None:
5856
super().__init__(name, TrafficLightScenario, TrafficLightResult)
5957
self._scenario: TrafficLightScenario
@@ -194,7 +192,7 @@ def get_traffic_light_pos_and_dist(
194192
traffic_light_uuid: str,
195193
map_to_baselink: TransformStamped,
196194
) -> tuple[float, float, float, float]:
197-
rtn_distance = TrafficLightEvaluator.MAX_DISTANCE_THRESHOLD + 1.0
195+
rtn_distance = self.__p_cfg["evaluation_config_dict"]["max_distance"] + 1.0
198196
try:
199197
int_uuid = int(traffic_light_uuid)
200198
except ValueError:

0 commit comments

Comments
 (0)