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

Method addVeh

limsim/simModel/fixedScene/localScene.py:80–85  ·  view source on GitHub ↗
(self, vdict: dict, vid: str)

Source from the content-addressed store, hash-verified

78 jl.switchTime = switchTime
79
80 def addVeh(self, vdict: dict, vid: str) -> None:
81 if vdict and vid in vdict.keys():
82 return
83 else:
84 vehIns = Vehicle(vid)
85 vdict[vid] = vehIns
86
87 def updateSurroundVeh(self):
88 nextStepVehicles = set()

Callers 1

updateSurroundVehMethod · 0.95

Calls 1

VehicleClass · 0.90

Tested by

no test coverage detected