Skip to content

Gripper Open

SUMMARY

Open Gripper commands a parallel gripper to move to its fully open position.

This skill is used to release a grasped object or prepare the gripper for approach before a pick operation.

SUPPORTED GRIPPERS

Available on Robotiq and OnRobot grippers.

UNITS

speed / force in the configured speed and force units (default percent for Robotiq; OnRobot ignores speed and uses N for force).

The Skill

python
status = gripper.open(speed=100.0, force=100.0, asynchronous=False)

The Code

Example: Open to Release an Object

python
"""
Robotiq open example for the Synapse SDK.

Opens the gripper fully at 100% speed and 50% force, synchronously.

Usage:
    python open.py --ip <ROBOT_IP>
"""

import argparse
from loguru import logger

from telekinesis.synapse.tools.parallel_grippers import robotiq


def main(ip: str):
    """Open the gripper fully at 100% speed and 50% force."""

    # Create and connect to the gripper
    gripper = robotiq.Robotiq2F85()
    gripper.connect(ip=ip)

    try:
        status = gripper.open(speed=100.0, force=50.0, asynchronous=False)
        logger.success(f"open() status: {status}, position: {gripper.get_current_position():.2f}")
    finally:
        gripper.disconnect()


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Robotiq gripper open example")
    parser.add_argument("--ip", type=str, required=True, help="UR robot IP address")
    args = parser.parse_args()

    main(ip=args.ip)

Parameter Configuration

Robotiq 2F-85

ParameterTypeDefaultDescription
speedfloat100.0Motion speed in percent (0-100). Pass -1.0 to use the session default.
forcefloat100.0Opening force in percent (0-100). Pass -1.0 to use the session default.
asynchronousboolFalseIf True, returns "MOVING" immediately without waiting.

OnRobot RG2 / RG6

ParameterTypeDefaultDescription
forcefloat-Opening force in Newtons, clamped to the model's max force.
asynchronousboolFalseIf True, returns "MOVING" immediately without waiting.

Returns

StatusDescription
"MOVING"Returned when asynchronous=True
"AT_DEST"Fingers reached fully open position
"STOPPED_OUTER_OBJECT"Robotiq only - stopped against an external object. OnRobot hardware cannot distinguish inner from outer grip, so this value is never returned by OnRobot.
"STOPPED_INNER_OBJECT"Robotiq: stopped by internal contact. OnRobot: any detected grasp (the hardware does not distinguish inner from outer).
"UNKNOWN_STATUS_<code>"Unexpected hardware status

Raises

Robotiq 2F-85

ExceptionCondition
TypeErrorasynchronous is not a bool
ValueErrorThe configured connection protocol is not supported
RuntimeErrorThe gripper is not connected

OnRobot RG2 / RG6

ExceptionCondition
TypeErrorAn argument's value does not match its expected type
RuntimeErrorThe gripper is not connected, or the underlying Modbus command fails

Where to Use the Skill

  • Release after place - Open the gripper after depositing an object
  • Pre-approach clearance - Open fully before descending onto a pick target
  • Reset state - Open at script start to ensure a known initial position

When Not to Use the Skill

Do not use Open Gripper when:

  • Partial opening is required - use Tool Move to move to a specific intermediate position
  • The gripper is not connected - always call connect before issuing motion commands