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

Method lateral_shift

scenario_runner/no_rendering_mode.py:613–615  ·  view source on GitHub ↗
(transform, shift)

Source from the content-addressed store, hash-verified

611 pygame.draw.lines(surface, trigger_color, True, corners, 2)
612
613 def lateral_shift(transform, shift):
614 transform.rotation.yaw += 90
615 return transform.location + shift * transform.get_forward_vector()
616
617 def draw_topology(carla_topology, index):
618 topology = [x[index] for x in carla_topology]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected