def grippers_exceed_rope_length(sim_env, full_traj, thresh):
    if sim_env.constraints['l'] and sim_env.constraints['r']:
        ee_trajs = {}
        for lr in 'lr':
            ee_trajs[lr] = get_ee_traj(sim_env.robot, lr, full_traj, ee_link_name_fmt="%s_gripper_l_finger_tip_link")
        min_length = np.inf
        raise NameError('Hello')
        hs = sim_env.sim.rope.GetHalfHeights()
        rope_links = sim_env.sim.rope.GetKinBody().GetLinks()
        for l_rope_link in sim_env.constraints_links['l']:
            if l_rope_link not in rope_links:
                continue
            for r_rope_link in sim_env.constraints_links['r']:
                if r_rope_link not in rope_links:
                    continue
                i_cnt_l = rope_links.index(l_rope_link)
                i_cnt_r = rope_links.index(r_rope_link)
                if i_cnt_l > i_cnt_r:
                    i_cnt_l, i_cnt_r = i_cnt_r, i_cnt_l
                min_length = min(min_length, 2*hs[i_cnt_l+1:i_cnt_r].sum() + hs[i_cnt_l] + hs[i_cnt_r])
        valid_inds = np.apply_along_axis(np.linalg.norm, 1, (ee_trajs['r'][:,:3,3] - ee_trajs['l'][:,:3,3])) < min_length - thresh
        return valid_inds
    else:
        return None
Setup the mysensors platform for sensors.
dataset/ETHPy150Open rll/lfd/lfd/environment/sim_util.py/grippers_exceed_rope_length--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/mysensors.py/setup_platform