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

Function get_position

PythonAPI/examples/gamma_crowd.py:343–345  ·  view source on GitHub ↗
(actor)

Source from the content-addressed store, hash-verified

341 return (actor_physics_control.wheels[0].max_steer_angle + actor_physics_control.wheels[1].max_steer_angle) / 2
342
343def get_position(actor):
344 pos3d = actor.get_location()
345 return carla.Vector2D(pos3d.x, pos3d.y)
346
347def get_forward_direction(actor):
348 forward = actor.get_transform().get_forward_vector()

Callers 7

get_aabbFunction · 0.70
get_bounding_box_cornersFunction · 0.70
do_deathFunction · 0.70
do_gammaFunction · 0.70
get_ttc_velFunction · 0.70

Calls 1

Vector2DMethod · 0.80

Tested by

no test coverage detected