def height_check(objectpose, **kwargs):
    """Label the grasp successful based on a height threshold."""

    if "min_height" in kwargs:
        min_height = kwargs.get("min_height")
    else:
        min_height = 0.9
    z_pos = objectpose["posZ"].to_list()
    if z_pos[-1] > min_height:
        return 1
    else:
        return 0