leaderboard/leaderboard/autoagents/dummy_agent.py
def run_step(self, input_data, timestamp):
        """
        Execute one step of navigation.
        """
        print("=====================>")
        for key, val in input_data.items():
            if hasattr(val[1], 'shape'):
                shape = val[1].shape
                print("[{} -- {:06d}] with shape {}".format(key, val[0], shape))
            else:
                print("[{} -- {:06d}] ".format(key, val[0]))
        print("<=====================")

        # DO SOMETHING SMART

        # RETURN CONTROL
        control = carla.VehicleControl()
        control.steer = 0.0
        control.throttle = 0.0
        control.brake = 0.0
        control.hand_brake = False

        return control

        Execute one step of navigation.
        
Execute one step of navigation.
Execute one step of navigation .
def run_step(self, input_data, timestamp):
        print("=====================>")
        for key, val in input_data.items():
            if hasattr(val[1], 'shape'):
                shape = val[1].shape
                print("[{} -- {:06d}] with shape {}".format(key, val[0], shape))
            else:
                print("[{} -- {:06d}] ".format(key, val[0]))
        print("<=====================")
        control = carla.VehicleControl()
        control.steer = 0.0
        control.throttle = 0.0
        control.brake = 0.0
        control.hand_brake = False
        return control
def run_step ( self , input_data , timestamp ) : print ( "=====================>" ) for key , val in input_data . items ( ) : if hasattr ( val [ 1 ] , 'shape' ) : shape = val [ 1 ] . shape print ( "[{} -- {:06d}] with shape {}" . format ( key , val [ 0 ] , shape ) ) else : print ( "[{} -- {:06d}] " . format ( key , val [ 0 ] ) ) print ( "<=====================" ) control = carla . VehicleControl ( ) control . steer = 0.0 control . throttle = 0.0 control . brake = 0.0 control . hand_brake = False return control
Execute one step of navigation.
Execute one step of navigation .
"""
        Execute one step of navigation.
        """ # DO SOMETHING SMART # RETURN CONTROL
self
input_data
timestamp