Control your gripper with the gripper API | Component APIs

Control your gripper with the gripper API

The gripper API allows you to give commands to your gripper components for opening and closing a device.

The gripper component supports the following methods:

Method Name Description
Open Opens the gripper.
Grab Closes the gripper until it grabs something or closes completely, and returns whether it grabbed something or not.
IsMoving Returns whether the gripper is actively moving (or attempting to move) under its own power.
IsHoldingSomething Return if the gripper is holding something.
Stop Stops the gripper.
GetGeometries Get all the geometries associated with the gripper in its current configuration, in the frame of the gripper.
GetCurrentInputs Get the current joint input values of the gripper.
GoToInputs Move the gripper to the specified joint input values.
Reconfigure Reconfigure this resource.
DoCommand Execute model-specific commands that are not otherwise defined by the component API.
GetKinematics Get the kinematics information associated with the gripper as the format and byte contents of the kinematics file.
GetResourceName Get the ResourceName for this gripper.
Close Safely shut down the resource and prevent further use.

API

Open

Opens the gripper.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Grab

Closes the gripper until it grabs something or closes completely, and returns whether it grabbed something or not.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

IsMoving

Returns whether the gripper is actively moving (or attempting to move) under its own power.

Parameters:

Returns:

IsHoldingSomething

Return if the gripper is holding something.

Parameters:

Returns:

Stop

Stops the gripper. It is assumed that the gripper stops immediately, so IsMoving will return false after calling Stop.

Parameters:

Returns:

GetGeometries

Get all the geometries associated with the gripper in its current configuration, in the frame of the gripper. The motion and navigation services use the relative position of inherent geometries to configured geometries representing obstacles for collision detection and obstacle avoidance while motion planning.

Parameters:

Returns:

GetCurrentInputs

Get the current joint input values of the gripper. This method is part of the frame system’s InputEnabled interface and is relevant for grippers with non-zero degrees of freedom that participate in motion planning.

Parameters:

Returns:

GoToInputs

Move the gripper to the specified joint input values. This method is part of the frame system’s InputEnabled interface and is relevant for grippers with non-zero degrees of freedom that participate in motion planning.

Parameters:

Returns:

Reconfigure

Reconfigure this resource. Reconfigure must reconfigure the resource atomically and in place.

Parameters:

Returns:

DoCommand

Execute model-specific commands that are not otherwise defined by the component API. Most models do not implement DoCommand. Any available model-specific commands should be covered in the model’s documentation. If you are implementing your own gripper and want to add features that have no corresponding built-in API method, you can implement them with DoCommand.

Parameters:

Returns:

GetKinematics

Get the kinematics information associated with the gripper as the format and byte contents of the kinematics file.

Parameters:

Returns:

GetResourceName

Get the ResourceName for this gripper.

Parameters:

Returns:

Close

Safely shut down the resource and prevent further use.

Parameters:

Returns: