def get_vehicle_max_speed(carla_vehicle):
    """
    Get the maximum speed of a carla vehicle

    :param carla_vehicle: the carla vehicle
    :type carla_vehicle: carla.Vehicle
    :return: maximum speed [m/s]
    :rtype: float64
    """
    # 180 km/h is the default max speed of a car
    max_speed = carla_vehicle.attributes.get(
        'max_speed', 180.0 / 3.6)

    return max_speed