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¶
Name |
Typ |
Description |
|---|---|---|
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.
Extended states in the handle editor¶ |
External handle in “upright” position¶ |
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.
Prioritization of the two states¶
If the best grip belongs to a state other than the current state, the Grab part 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:
Handle search delivers “best handle”
Does the best grip belong to a state other than the current state?
If no -> continue to 5.
Set the gripper status according to the “best grip”
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 totrueset_outputs_false: sets the IO ports corresponding to the given signal numbers tofalsewait_for_inputs_true: blocked untiltrueis present at the corresponding IO portswait_for_inputs_false: blocked untilfalseis 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 gripperjoint_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.