mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-23 01:13:44 +08:00
more ty, part 2 (#38379)
This commit is contained in:
@@ -94,7 +94,7 @@ Ignition: {self.simulator_state.ignition} Engaged: {self.simulator_state.is_enga
|
||||
""")
|
||||
|
||||
@abstractmethod
|
||||
def spawn_world(self, q: Queue) -> World:
|
||||
def spawn_world(self, q: Queue, /) -> World:
|
||||
pass
|
||||
|
||||
def _run(self, q: Queue):
|
||||
|
||||
@@ -40,7 +40,7 @@ class SimulatorState:
|
||||
self.is_engaged = False
|
||||
self.ignition = True
|
||||
|
||||
self.velocity: vec3 = None
|
||||
self.velocity = vec3(0, 0, 0)
|
||||
self.bearing: float = 0
|
||||
self.gps = GPSState()
|
||||
self.imu = IMUState()
|
||||
@@ -72,7 +72,7 @@ class World(ABC):
|
||||
self.exit_event = multiprocessing.Event()
|
||||
|
||||
@abstractmethod
|
||||
def apply_controls(self, steer_sim, throttle_out, brake_out):
|
||||
def apply_controls(self, steer_sim, throttle_out, brake_out, /):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@@ -84,7 +84,7 @@ class World(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def read_sensors(self, simulator_state: SimulatorState):
|
||||
def read_sensors(self, simulator_state: SimulatorState, /):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user