def get_vehicle_mass(vehicle_info):
    """
    Get the mass of a carla vehicle (defaults to 1500kg)

    :param vehicle_info: the vehicle info
    :type vehicle_info: carla_ros_bridge.CarlaEgoVehicleInfo
    :return: mass of a carla vehicle [kg]
    :rtype: float64
    """
    mass = 1500.0
    if vehicle_info.mass:
        mass = vehicle_info.mass

    return mass