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

Method dbVType

limsim/simModel/fixedScene/replay.py:120–133  ·  view source on GitHub ↗
(self, vid: str)

Source from the content-addressed store, hash-verified

118 return dbTrajectory
119
120 def dbVType(self, vid: str):
121 conn = sqlite3.connect(self.dataBase)
122 cur = conn.cursor()
123 cur.execute(
124 """SELECT length, width, maxAccel, maxDecel, maxSpeed, vTypeID,
125 routes FROM vehicleINFO WHERE vid = '%s';"""
126 % vid
127 )
128
129 vType = cur.fetchall()
130
131 cur.close()
132 conn.close()
133 return vType[0]
134
135 def initVeh(self, vid: str, currFrame: int) -> Vehicle:
136 dbTrajectory = self.dbTrajectory(vid, currFrame)

Callers 1

initVehMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected