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

Method dbVType

limsim/simModel/egoTracking/interReplay.py:290–301  ·  view source on GitHub ↗
(self, vid: str)

Source from the content-addressed store, hash-verified

288 return dbTrajectory
289
290 def dbVType(self, vid: str):
291 conn = sqlite3.connect(self.dataBase)
292 cur = conn.cursor()
293 cur.execute("""SELECT length, width,
294 maxAccel, maxDecel, maxSpeed, vTypeID, routes FROM vehicleINFO
295 WHERE vid = '%s';""" % vid)
296
297 vType = cur.fetchall()
298
299 cur.close()
300 conn.close()
301 return vType[0]
302
303 def initVeh(self, vid: str, currFrame: int) -> Vehicle | egoCar:
304 dbTrajectory = self.dbTrajectory(vid, currFrame)

Callers 1

initVehMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected