MCPcopy Create free account
hub / github.com/dotchen/LearningByCheating / _is_light_red

Method _is_light_red

PythonAPI/agents/navigation/agent.py:78–93  ·  view source on GitHub ↗

Method to check if there is a red light affecting us. This version of the method is compatible with both European and US style traffic lights. :param lights_list: list containing TrafficLight objects :return: a tuple given by (bool_flag, traffic_light), where

(self, lights_list)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

run_stepMethod · 0.45
run_stepMethod · 0.45

Calls 2

Tested by

no test coverage detected