MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / on_world_tick

Method on_world_tick

scenario_runner/no_rendering_mode.py:966–973  ·  view source on GitHub ↗
(weak_self, timestamp)

Source from the content-addressed store, hash-verified

964
965 @staticmethod
966 def on_world_tick(weak_self, timestamp):
967 self = weak_self()
968 if not self:
969 return
970
971 self.server_clock.tick()
972 self.server_fps = self.server_clock.get_fps()
973 self.simulation_time = timestamp.elapsed_seconds
974
975 def _split_actors(self):
976 vehicles = []

Callers 1

startMethod · 0.80

Calls 1

tickMethod · 0.45

Tested by

no test coverage detected