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

Method dbVType

limsim/simModel/fixedScene/interReplay.py:259–270  ·  view source on GitHub ↗
(self, vid: str)

Source from the content-addressed store, hash-verified

257 return dbTrajectory
258
259 def dbVType(self, vid: str):
260 conn = sqlite3.connect(self.dataBase)
261 cur = conn.cursor()
262 cur.execute("""SELECT length, width,
263 maxAccel, maxDecel, maxSpeed, vTypeID, routes FROM vehicleINFO
264 WHERE vid = '%s';""" % vid)
265
266 vType = cur.fetchall()
267
268 cur.close()
269 conn.close()
270 return vType[0]
271
272 def initVeh(self, vid: str, currFrame: int) -> Vehicle:
273 dbTrajectory = self.dbTrajectory(vid, currFrame)

Callers 1

initVehMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected