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

Method __init__

limsim/simModel/common/carFactory.py:496–508  ·  view source on GitHub ↗
(self, x: float, y: float, radius: float)

Source from the content-addressed store, hash-verified

494
495class DummyVehicle:
496 def __init__(self, x: float, y: float, radius: float) -> None:
497 self.x = x
498 self.y = y
499 if radius > 100:
500 print(
501 '[yellow]The given local radius is too large, and is resized to 100![/yellow]')
502 self.radius = 100
503 elif radius < 20:
504 print(
505 '[yellow]The given local radius is too small, and is resized to 20![/yellow]')
506 self.radius = 20
507 else:
508 self.radius = radius
509
510 def plotArea(self, node: dpg.node, ex: float, ey: float, ctf: CoordTF):
511 cx, cy = ctf.qtCoord(self.x, self.y, ex, ey)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected