MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / _get_trigger_volume

Function _get_trigger_volume

PythonAPI/carla/scene_layout.py:135–146  ·  view source on GitHub ↗
(actor)

Source from the content-addressed store, hash-verified

133 return corners
134
135 def _get_trigger_volume(actor):
136 bb = actor.trigger_volume.extent
137 corners = [carla.Location(x=-bb.x, y=-bb.y),
138 carla.Location(x=bb.x, y=-bb.y),
139 carla.Location(x=bb.x, y=bb.y),
140 carla.Location(x=-bb.x, y=bb.y),
141 carla.Location(x=-bb.x, y=-bb.y)]
142 corners = [x + actor.trigger_volume.location for x in corners]
143 t = actor.get_transform()
144 t.transform(corners)
145 corners = [carla_map.transform_to_geolocation(p) for p in corners]
146 return corners
147
148 def _split_actors(actors):
149 vehicles = []

Callers 2

get_stop_signalsFunction · 0.85
get_traffic_lightsFunction · 0.85

Calls 1

LocationMethod · 0.45

Tested by

no test coverage detected