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

Method plotDBTrajectory

limsim/simModel/common/carFactory.py:381–393  ·  view source on GitHub ↗
(self, widget: QWidget, ex: float, ey: float, ctf: CoordTF)

Source from the content-addressed store, hash-verified

379 # signal.emit('polyline', tps, QColor(205,132,241), QColor(205,132,241), 1, False, "")
380
381 def plotDBTrajectory(self, widget: QWidget, ex: float, ey: float, ctf: CoordTF):
382 if self.dbTrajectory and self.dbTrajectory.xQueue:
383 tps = [
384 ctf.qtCoord(
385 self.dbTrajectory.xQueue[i],
386 self.dbTrajectory.yQueue[i],
387 ex, ey
388 ) for i in range(len(self.dbTrajectory.xQueue))
389 ]
390 widget.drawPolyline(tps, QColor(255, 112, 85), 2)
391 # graphics_item.append(graphicsItem(
392 # 'polyline', tps, QColor(225, 112, 85), QColor(225, 112, 85), 2))
393 # signal.emit('polyline', tps, QColor(225, 112, 85), QColor(225, 112, 85), 2, False, "")
394
395 # append yaw of the car
396 def yawAppend(self, angle: float):

Callers 4

drawSceMethod · 0.80
drawSceMethod · 0.80
drawSceMethod · 0.80
drawSceMethod · 0.80

Calls 2

qtCoordMethod · 0.80
drawPolylineMethod · 0.80

Tested by

no test coverage detected