MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / get_bounding_box

Method get_bounding_box

scenario_runner/no_rendering_mode.py:174–184  ·  view source on GitHub ↗
(actor)

Source from the content-addressed store, hash-verified

172
173 @staticmethod
174 def get_bounding_box(actor):
175 bb = actor.trigger_volume.extent
176 corners = [carla.Location(x=-bb.x, y=-bb.y),
177 carla.Location(x=bb.x, y=-bb.y),
178 carla.Location(x=bb.x, y=bb.y),
179 carla.Location(x=-bb.x, y=bb.y),
180 carla.Location(x=-bb.x, y=-bb.y)]
181 corners = [x + actor.trigger_volume.location for x in corners]
182 t = actor.get_transform()
183 t.transform(corners)
184 return corners
185
186# ==============================================================================
187# -- ModuleManager -------------------------------------------------------------

Callers 3

draw_traffic_signsMethod · 0.80
_render_speed_limitsMethod · 0.80

Calls 1

get_transformMethod · 0.80

Tested by

no test coverage detected