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

Class egoCar

limsim/simModel/common/carFactory.py:476–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474
475
476class egoCar(Vehicle):
477 def __init__(
478 self, id: str, deArea: float = 100, sceMargin: float = 20
479 ) -> None:
480 super().__init__(id)
481 # detection area
482 self.deArea = deArea
483 self.sceMargin = sceMargin
484 self.start_lane = ""
485 self.end_lane = ""
486
487 def plotdeArea(self, widget: QWidget, ex: float, ey: float, ctf: CoordTF):
488 shape = [ctf.qtCoord(self.x, self.y, ex, ey), QPointF(ctf.zoomScale*self.deArea *
489 2, ctf.zoomScale*self.deArea*2)]
490 widget.drawEllipse(shape, QColor(255, 255, 255), QColor(243, 204, 153, 30))
491 # graphics_item.append(graphicsItem('ellipse', shape, QColor(
492 # 255, 255, 255), QColor(243, 204, 153, 30)))
493
494
495class DummyVehicle:

Callers 3

initVehMethod · 0.90
initVehMethod · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected