pyrobot.robots.locobot.gripper.
LoCoBotGripper
(configs, ns='', wait_time=3)[source]¶Bases: pyrobot.robots.gripper.Gripper
Interface for gripper
__init__
(configs, ns='', wait_time=3)[source]¶The constructor for LoCoBotGripper class.
configs (YACS CfgNode) – configurations for gripper
wait_time (float) – waiting time for opening/closing gripper
close
(wait=True)[source]¶Commands gripper to close fully
wait (bool) – True if blocking call and will return after target_joint is achieved, False otherwise
get_gripper_state
()[source]¶Return the gripper state.
state
state = -1: unknown gripper state
state = 0: gripper is fully open
state = 1: gripper is closing
state = 2: there is an object in the gripper
state = 3: gripper is fully closed
int