MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / __init__

Method __init__

roach/criteria/run_stop_sign.py:7–21  ·  view source on GitHub ↗
(self, carla_world, proximity_threshold=50.0, speed_threshold=0.1, waypoint_step=1.0)

Source from the content-addressed store, hash-verified

5class RunStopSign():
6
7 def __init__(self, carla_world, proximity_threshold=50.0, speed_threshold=0.1, waypoint_step=1.0):
8 self._map = carla_world.get_map()
9 self._proximity_threshold = proximity_threshold
10 self._speed_threshold = speed_threshold
11 self._waypoint_step = waypoint_step
12
13 all_actors = carla_world.get_actors()
14 self._list_stop_signs = []
15 for _actor in all_actors:
16 if 'traffic.stop' in _actor.type_id:
17 self._list_stop_signs.append(_actor)
18
19 self._target_stop_sign = None
20 self._stop_completed = False
21 self._affected_by_stop = False
22
23 def tick(self, vehicle, timestamp):
24 info = None

Callers

nothing calls this directly

Calls 2

get_mapMethod · 0.80
get_actorsMethod · 0.80

Tested by

no test coverage detected