Simulator: fix metadrive tick frequency (#30043)

sim rate fix
pull/30044/head
Justin Newberry 2 years ago committed by GitHub
parent 2cca0cbde8
commit 98451611be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/sim/bridge/common.py

@ -32,7 +32,7 @@ class SimulatorBridge(ABC):
set_params_enabled()
self.params = Params()
self.rk = Ratekeeper(100)
self.rk = Ratekeeper(100, None)
msg = messaging.new_message('liveCalibration')
msg.liveCalibration.validBlocks = 20
@ -90,8 +90,6 @@ class SimulatorBridge(ABC):
100, self._exit_event))
self.simulated_car_thread.start()
rk = Ratekeeper(100, print_delay_threshold=None)
# Simulation tends to be slow in the initial steps. This prevents lagging later
for _ in range(20):
self.world.tick()
@ -162,4 +160,4 @@ class SimulatorBridge(ABC):
self.started = True
rk.keep_time()
self.rk.keep_time()

Loading…
Cancel
Save