    if args.simulator == "carla":
      simulator_bridge = CarlaBridge(args)
    else:
      raise AssertionError("simulator type not supported")
    p = simulator_bridge.run(q)
  
    if args.joystick:
 
</s> remove   rk = Ratekeeper(hz)
 </s> add   rk = Ratekeeper(hz, None) </s> remove     self.send_panda_state(simulator_state)
 </s> add     if self.idx % 50 == 0: # only send panda states at 2hz
      self.send_panda_state(simulator_state)
  elif args.simulator == "metadrive":
    simulator_bridge = MetaDriveBridge(args)
    if args.simulator == "carla":
      simulator_bridge = CarlaBridge(args)
  elif args.simulator == "metadrive":
    simulator_bridge = MetaDriveBridge(args)
    else:
      raise AssertionError("simulator type not supported")
    p = simulator_bridge.run(q)
  
    if args.joystick:
keep add keep keep keep keep keep
 Simulator: add metadrive as optional simulator (#29935)

* Add metadrive sim

* use monotonic

* don't use cuda if it's not available

* Cleanup metadrive patches

* PR suggestions

* fix typo 
tools/sim/run_bridge.py