| 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): |