Setting the gripper status

Sets the gripper to an extended configured state (also called additional gripper state).

This state change can be used to set and wait for IO signals, for example. The use of extended gripper states makes it possible to model complex grippers that can assume other states in addition to open/closed.

Variablen

Input/Output

Name

Typ

Description

Input

Condition

String

Name of the new gripper state, must be defined in gripper.yaml within additional_states. Example: ‘Standing’ and ‘Folded’ for a gripper with additional swivel function.

Note

The joint_values of a gripper with additional_state must currently be published by a project-specific script with a joint_state_publisher. Contact Mikado support for details.

Gripping behavior

If a gripper has configured, extended states, there is a separate grip category for each state. In the following example, the gripper has a pneumatic swivel joint to fold the gripper fingers. This joint has two states: “Standing” and “Folded”. Grips can be defined separately for each of these states.

../_images/Griffdefinition.png

Extended states in the handle editor

../_images/Stehend.png

External handle in “upright” position

../_images/Geklappt.png

External handle in “Folded” state

The best handle is always selected (see Best handles). However, the grip search only implicitly considers the extended states in its prioritization criteria. In the example above, the best grip (of the two possible) is the “standing” grip, as the wrist is higher and the trajectory distance is much shorter.

../_images/Priorisierung.png

Prioritization of the two states

If the best grip belongs to a state other than the current state, the Pick object task internally calls the Setting the gripper status task. This means that the gripper state is automatically changed in this case (or the signal is sent).

Summary:

  1. Handle search delivers “best handle”

  2. Does the best grip belong to a state other than the current state?

  3. If no -> continue to 5.

  4. Set the gripper status according to the “best grip”

  5. Grab part

Detailed description

There are a total of 4 possible actions that can be performed when setting an extended status:

  • set_outputs_true: sets the IO ports corresponding to the given signal numbers to true

  • set_outputs_false: sets the IO ports corresponding to the given signal numbers to false

  • wait_for_inputs_true: blocked until true is present at the corresponding IO ports

  • wait_for_inputs_false: blocked until false is present at the corresponding IO ports

In addition, changed joint positions of the gripper can be defined for extended states using the following two parameters:

  • joint_names: List of additional joints within the gripper

  • joint_values: Joint values [rad] that the additional joints assume in this state

Example of a corresponding section for an extended gripper.yaml configuration:

# gripper.yaml

additional_states:
  Stehend:
    set_outputs_true:      []
    set_outputs_false:     [2]  # Roboter IO zum Setzen von Gelenk stehend
    wait_for_inputs_true:  [23] # Stehend bestätigt
    wait_for_inputs_false: []
    joint_names:           ['Kippgelenk_Joint']
    joint_values:          [0.0]  # Wert in [rad] von Kippgelenk_Joint im Zustand "Stehend"
  Geklappt:
    set_outputs_true:      [2]  # Roboter IO zum Setzen von Gelenk geklappt
    set_outputs_false:     []
    wait_for_inputs_true:  [22]  # Klappen bestätigt
    wait_for_inputs_false: []
    joint_names:           ['Kippgelenk_Joint']
    joint_values:          [-1.570796]  # Wert in [rad] von Kippgelenk_Joint im Zustand "Geklappt"

If defined in gripper.yaml, these additional_states are automatically added to newly created products. An example of a handle definition with ‘upright’ and ‘folded’ states:

# <name>.product
[...]

grasps:
  - name: Außengriff - stehend
    type: GraspSetting
    graspType: SimpleExternal
    additionalStates:
      - Stehend   # muss übereinstimmen mit Namen aus gripper.yaml
    endEffector: gripper_group
    subitems:
        []
  - name: Außengriff - geklappt
    type: GraspSetting
    graspType: SimpleExternal
    additionalStates:
      - Geklappt  # muss übereinstimmen mit Namen aus gripper.yaml
    endEffector: gripper_group
    subitems:
        []

Note

For existing products, the additional gripper state for a specific handle category must be entered manually in the <productName>.product file.