leaderboard/leaderboard/autoagents/human_agent.py
def parse_events(self, timestamp):
        """
        Parse the keyboard events and set the vehicle controls accordingly
        """
        # Move the vehicle
        if self._mode == "playback":
            self._parse_json_control()
        else:
            self._parse_vehicle_keys(pygame.key.get_pressed(), timestamp*1000)

        # Record the control
        if self._mode == "log":
            self._record_control()

        return self._control

        Parse the keyboard events and set the vehicle controls accordingly
        
Parse the keyboard events and set the vehicle controls accordingly
Parse the keyboard events and set the vehicle controls accordingly
def parse_events(self, timestamp):
        if self._mode == "playback":
            self._parse_json_control()
        else:
            self._parse_vehicle_keys(pygame.key.get_pressed(), timestamp*1000)
        if self._mode == "log":
            self._record_control()
        return self._control
def parse_events ( self , timestamp ) : if self . _mode == "playback" : self . _parse_json_control ( ) else : self . _parse_vehicle_keys ( pygame . key . get_pressed ( ) , timestamp * 1000 ) if self . _mode == "log" : self . _record_control ( ) return self . _control
Parse the keyboard events and set the vehicle controls accordingly
Parse the keyboard events and set the vehicle controls accordingly
"""
        Parse the keyboard events and set the vehicle controls accordingly
        """ # Move the vehicle # Record the control
self
timestamp