MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / addVeh

Method addVeh

limsim/simModel/egoTracking/movingScene.py:87–92  ·  view source on GitHub ↗
(self, vdict: dict, vid: str)

Source from the content-addressed store, hash-verified

85 jl.switchTime = switchTime
86
87 def addVeh(self, vdict: dict, vid: str) -> None:
88 if vdict and vid in vdict.keys():
89 return
90 else:
91 vehIns = Vehicle(vid)
92 vdict[vid] = vehIns
93
94 # getSurroundVeh will update all vehicle's attributes
95 # so don't update again in other steps

Callers 1

updateSurroudVehMethod · 0.95

Calls 1

VehicleClass · 0.90

Tested by

no test coverage detected