setState sets gripper to a value between [0-1] where 0 is fully open and 1 is fully closed. 'nan' is ignored.