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

Function _lateral_shift

PythonAPI/carla/scene_layout.py:31–33  ·  view source on GitHub ↗
(transform, shift)

Source from the content-addressed store, hash-verified

29 """
30
31 def _lateral_shift(transform, shift):
32 transform.rotation.yaw += 90
33 return transform.location + shift * transform.get_forward_vector()
34
35 topology = [x[0] for x in carla_map.get_topology()]
36 topology = sorted(topology, key=lambda w: w.transform.location.z)

Callers 1

get_scene_layoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected