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

Function is_car

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

Source from the content-addressed store, hash-verified

424 return left_lane_constrained_by_sidewalk, right_lane_constrained_by_sidewalk
425
426def is_car(actor):
427 return isinstance(actor, carla.Vehicle) and int(actor.attributes['number_of_wheels']) > 2
428
429def is_bike(actor):
430 return isinstance(actor, carla.Vehicle) and int(actor.attributes['number_of_wheels']) == 2

Callers 1

do_collision_statisticsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected