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

Method parse_input

scenario_runner/no_rendering_mode.py:1349–1358  ·  view source on GitHub ↗
(self, clock)

Source from the content-addressed store, hash-verified

1347 self.mouse_pos = (x, y)
1348
1349 def parse_input(self, clock):
1350 self._parse_events()
1351 self._parse_mouse()
1352 if not self._autopilot_enabled:
1353 if isinstance(self.control, carla.VehicleControl):
1354 self._parse_keys(clock.get_time())
1355 self.control.reverse = self.control.gear < 0
1356 world = module_manager.get_module(MODULE_WORLD)
1357 if (world.hero_actor is not None):
1358 world.hero_actor.apply_control(self.control)
1359
1360 @staticmethod
1361 def _is_quit_shortcut(key):

Callers 1

tickMethod · 0.95

Calls 5

_parse_eventsMethod · 0.95
_parse_mouseMethod · 0.95
_parse_keysMethod · 0.95
get_timeMethod · 0.80
get_moduleMethod · 0.80

Tested by

no test coverage detected