Use¶
This chapter explains how to use Mikado Control and how to create your own workflows. In addition, all tools of the Mikado interface are explained.
Home page¶
On the welcome page of Mikado Control you can load your products and program sequences via quick access. All you need to do is click on the corresponding list entry.
New products or programs that you create in Mikado Control are automatically added to the lists the next time you start the Mikado software. All you have to do is save the product/program in the standard directory for products/programs.
Note
The default directory is preselected when a product/program is saved. Further information on the directory structure can be found in the section Directory structure.
Operator page¶
The ‘Operator’ page is used to implement individual or project-specific requirements for the Mikado| interface. Control elements such as input fields and buttons that are necessary or helpful for an individual application are displayed on this page. If no user page is configured, it is not displayed in the navigation. Otherwise, it can be found below the welcome page in the ‘Run’ menu.
Furnishing page¶
The ‘Setup’ page can be customized. The documentation for the Operator page applies accordingly to the setup page.
If password protection is activated, this page must be unlocked before it can be accessed. This means, for example, that setting options for application-specific parameters can be offered to a restricted group of users.
Status page¶
The status page is the central view for an operator. The program sequence can be controlled here and the current status of the executed task is displayed. (Screenshot of the Mikado interface with status page, see above).
Program schedule¶
The central part of the status overview can be seen below the control buttons. All sequences and their tasks of the current Mikado program are displayed here. Sequences are shown as green boxes with sequence names and group the tasks (white boxes) underneath them.
You will find any user comments assigned next to the task type. If a task has already been executed, you will see the result of the last execution of this task in the ‘Status’ field. If the task is currently being executed, the displayed box turns light green and the ‘Status’ field shows the execution status.
Program cursor¶
If the execution of the program has been paused, the following task, which will be executed next when the program is resumed, is marked with the program cursor and colored yellow. The program cursor is displayed as a green frame.
In the event of an error, the program sequence is aborted and the task that reported the error is colored red or orange. In this case, an error message is displayed in the ‘Status’ field. Some tasks support the option to retry the program. In this case, the task is not colored red but orange. Examples of this are the move tasks in ‘Robot control’ or ‘Record point cloud’. To obtain further information on an error, it is advisable to take a look at the Logs.
Task visualization¶
The colored representations of a task on the status page have the following meanings:
white
Inactive. Task has not yet been executed or has been executed successfully.
green
In execution.
yellow
This task is executed next when the process is continued.
orange
An error has occurred during the execution of the task, but it is possible to try again. To do this, continue the process.
rot
An error has occurred. The process must be stopped and restarted to continue.
Status bar¶
The status bar is an integral part of the Mikado interface and is displayed at the bottom of every view.
Status bar and system status¶
The following displays can be seen in the status bar (from the left):
- Systemstatus
- Program
Loaded Mikado program. This can be modified and managed using Program editor.
- Product
Active product. The active product can be changed and set via the Product management (see Active product)
- Box
Active box. The active crate can change during program execution (see Set active crate). You can see the currently active crate in this area of the status bar.
- Camera
Active camera. The active camera can change during program execution (see Set active camera). You can see the currently active camera in this area of the status bar.
- Time
The current time
Systemstatus¶
The system status serves as a quick indicator of whether all the hardware components of your system are working correctly. The colored circle in the status bar on the left indicates whether there is a problem. If all configured components such as robots, camera systems, license dongles or fieldbus systems are working, this circle turns ‘green’. However, if Mikado Control detects an impermissible status in the system, the status indicator will turn ‘red’ and your program sequence may not function correctly.
If you would like to see a more detailed breakdown of the status of the individual components, move your mouse pointer over the circle. An overview of the individual components now appears, each with a status indicator and comment.
Password protection¶
For cells with activated password protection, all Gui elements that would allow changes to the cell modeling or flow control are only released after the correct password has been entered.
Screenshot menu with activated password protection¶
Unlocked areas in the menu are indicated by small lock symbols. To unlock, click on the large lock symbol in the menu bar at the top right and enter the password in the following dialog.
Program editor¶
The program editor provides the necessary tools to create a Mikado program sequence. It can be found via the main menu under ‘Edit’ → ‘Program’.
Mikado Programs¶
A Mikado program consists of sequences, tasks and variables. Together, these form an executable program that performs tasks such as reaching into a box. Products and scene objects that can be used in the program are managed independently of the program.
Sequences¶
A Mikado program sequence takes place in different sequences. The program starts with the first sequence and repeats this again and again. A sequence change or transition takes place when a task triggers this. An example of this is the task ‘Switch to sequence’, which stops the execution of the active sequence and switches to another sequence. Another example of a sequence change are tasks that jump to another sequence under certain conditions.
Sequences are created and edited using the program editor. They must be clearly named.
Tasks¶
Tasks are the basic building blocks of a Mikado program and are always part of a sequence. When the execution of a sequence starts, it begins with the first task. The tasks are then processed one after the other, with each task fulfilling a task. Tasks are parameterized using variables. Variables can also be changed by a task.
A task can also have sequence changes. These are listed below a hyphen. If a corresponding condition occurs, the task can trigger a sequence change.
Tasks are added to sequences and edited using the program editor. Both variables and sequence changes are configured via the interface.
All available tasks are listed and explained in the Tasks chapter.
Hint
Both variables and sequence changes are not mandatory for every task.
Variablen¶
Variables represent the dynamic part of the Mikado program. They are read in or modified by tasks. If a program is restarted, all variable values are reset to the defined initial value, but many variable values are modified by the tasks during execution. Further information on variables can be found in the Variable editor section.
Graphical user interface¶
Program editor¶
The program editor interface consists of the following areas:
Toolbar (top bar)
See Toolbar
Editor (left area)
Interface to compile the Mikado program
Task library (right bar)
List with all available task types. The tasks are listed by category. Click on the info icon to display a brief description. To add a task to the current Mikado program, drag and drop the desired task to the desired position.
Alphabetical sorting: If this button is activated, the categories are hidden and all tasks are listed in alphabetical order.
Filter: If this button is activated, an input field is displayed which can be used to filter the available tasks.
Sequence bar (bottom bar)
The sequence bar is located below the editor:
Collapse all / Expand all
Folds all sequences in/out. If all sequences are collapsed, you will see a clear arrangement of the sequences. In this view, you can also move the sequences using ‘Drag & Drop’ with the help of the now visible handles.
Add sequence
Create new sequence.
Jump to
Select a sequence here to jump to it directly in the editor. This allows you to navigate more quickly in extensive programs.
Toolbar¶
Toolbar of the program editor¶
The toolbar is located in the upper area with the following elements (from left to right):
New program
Discards the currently loaded program and creates a new one.
Warning
Unsaved changes will be lost.
Open program
Opens a dialog with which an existing Mikado program can be loaded. The variables of the selected program are also loaded.
Warning
Unsaved changes will be lost.
Current program
The program name is displayed in this field.
Save program
Saves all changes to sequences, tasks and variables.
Save program as …
Saves all changes to sequences, tasks and variables in a new file.
Reset all variables to their initial value
Click on this button to reset the values of all variables to their initial value. This does not stop the current Mikado program.
Check the program for errors
See Programm-Validator.
Create program¶
To create a new sequence, click on the ‘Add sequence’ button in the lower sequence bar. A new sequence is appended to the current program. Clicking on the title of the sequence (by default “New sequence”) allows you to change the sequence name. The buttons in the sequence heading can also be used to collapse or delete the sequences.
Sequences can be put together using ‘drag & drop’. Select a task from the task list on the right and, holding down the mouse button, drag it to the position where you want to insert it. An instance of the selected task appears at the desired location. You can now optionally add a comment to the task. Depending on the task, you can or must assign variables and sequences for sequence changes to the task. If a mandatory variable is missing, this is indicated by a note. Further information can also be found in the task description.
A line is displayed in the task for each variable/sequence change. Here you can see the name of the variable or sequence change, followed by the current selection. The button for each entry opens a selection dialog with which you can select an existing variable/existing sequence change. In this dialog, there is also a text field that can be used to create a new variable/sequence. Finally, the current value of the selected variable is displayed next to the button.
Tasks have a meta button next to these elements at the top right, which can be used to display an extended view. In this view, tasks can be moved, duplicated and deleted. Moving or duplicating a task is also done by ‘drag & drop’.
Hint
It’s quicker this way:
Click on the variable name: Direct entry of the variable name. If this does not exist, a new variable is created.
Click on the variable value: Opens a quick dialog in which the variable properties can be edited.
Hint
Don’t regret anything: If you delete a task or a sequence, the action will be executed with a delay of a few seconds. This gives you one last opportunity to undo the action if it was not intended!
Programm-Validator¶
The current Mikado program is automatically checked for some errors using the program validator. The result is indicated by a green or red flag in the toolbar. In the event of an error, the number of misconfigured tasks is also displayed. On the one hand, sequence changes and variables are checked for existence and on the other hand, it is checked whether the types of the task variables are correct. Some tasks have special conditions, e.g. only a string can be appended to a StringList, but not a pose. You will find more detailed information on troubleshooting either in a summary dialog when you click on the flag or in red in the preview area of the individual tasks.
This validation also takes place automatically before each start of a Mikado program and displays a message if the validation fails. If necessary, the program can then be executed despite the error until the first erroneous task is reached.
Variable editor¶
An overview of all variables can be found under the ‘Edit’ menu item on the ‘Variables’ page. For each variable, it is explained how its values can be edited and displayed.
Variable editor¶
Variablentabelle¶
The variables are listed in tabular form on the left-hand side of the page. Further columns contain the current value and the initial value (see below for a more detailed explanation). The list is sorted alphabetically, with variables starting with capital letters first and then variables starting with lower case letters.
If variable values differ from their initial values, the variable value is displayed in bold font.
Editing variables¶
Click on an entry in the variable table to display a view for editing the variable to the right of the table. This view contains the following elements:
Property indicator¶
Variables can have additional properties, which can be (de)activated by clicking on the buttons shown below.
Buttons for (de)activating properties¶
Favorite variables¶
Favorites are always displayed at the top of the variable table. In programs with many variables, this feature can help you find important variables more quickly.
Read-only variables¶
Read-only variables have the following properties:
The value cannot be changed by the Mikado program. If a task attempts to change the value of a write-protected variable, a program error is thrown. This also means that write-protected variables cannot be reset.
The origin of the write-protected status is subdivided. If the status is user-defined, symbolized by
, the following property becomes active:
Value and initial value are synchronized. Users can set the value on the variables page by temporarily removing the write protection.
Or it is an input variable of the active interface. Input variables are automatically write-protected and are symbolized by
. External variables have the following property:
They cannot be modified by the user. This status can only be achieved at runtime if an interface is active. This status is not saved.
Appearance¶
Clicking on the button to the left of the occurrence counter opens a list with a detailed description of the occurrence. Click on an entry to jump to the corresponding point in the program sequence.
Example of variable occurrence¶
Name¶
Variable name
Typ¶
An overview of the types with a brief explanation of each can be found in the following table.
Variablentyp |
Description |
Example values |
|---|---|---|
Integer |
Integer |
|
Double |
Decimal number |
|
String |
Text |
Box |
StringList |
List of text elements |
Box1
Box2
|
JointPosition |
Robot position represented by the individual joint angle values in degrees |
|
Pose |
Pose consisting of position (x, y, z) in m and orientation (roll, pitch, yaw) in radians e.g. for grab pose, product pose etc. Note: A pose is a form of representation of the homogeneous transformation matrix. Both representations can be transformed into each other. |
|
PoseList |
List of pose elements |
xyz: 0.1 0 0.5 rpy: 0 0 3.14xyz: 0.2 0 0.6 rpy: 3.14 0 3.14 |
Bool |
Boolean value ( |
true |
JScript |
A text-like data type that contains JavaScript code |
var a = dataStore.data("a")a = a + 1dataStore.setData("a", a) |
Value¶
The current value of the variable. The value of a variable can change at any time as the program runs.
If it is a StringList, the text field is multi-line and list entries are separated by a line break.
Initial value¶
The value that is assigned to a variable when the Mikado program is started or reset. This value is saved when a program is saved and is generally not changed during a program run.
Possible actions¶
- Reset
Resets the current value of the variable to the initial value.
- Remove
Deletes the variable and its content.
- Confirm
Confirm input. Only visible for list input fields, as simple input fields are confirmed by pressing the ‘Enter’ key (or by switching to another field).
- Adopt current robot pose
Sets the value of the variable to the pose that the robot is currently assuming (only visible for the ‘Pose’ variable type).
- Take over current part pose
Sets the value of the variable to the pose that a gripped part is currently in (only visible for the ‘Pose’ variable type). The prerequisite for this function is that the robot has successfully gripped a part and is currently holding it in the gripper.
- Adopt current joint values
Sets the value of the variable to the joint angle that the robot is currently at (only visible for the ‘JointPosition’ variable type).
Hint
Always confirm an entry with the Enter key or switch to the next input field, only then will the input values be accepted.
Create new variable¶
Input fields for creating a new variable can be found below the variable table. Enter an unused variable name here and select the desired variable type. After clicking on ‘Add’, the new variable appears in the table and can be edited as usual.
Import variables from file¶
The ‘Import from file’ button can be found at the bottom of the page. You can use this function to add a complete variable table from another Mikado program to the existing variable list. This does not change the main program. The following cases can occur:
- New variable name:
Variable is added
- Variable name already exists, variable type matches:
The current value is replaced by the value from the file to be read, initial value remains unchanged
- Variable name already exists, variable type does not match:
Variable remains unchanged, the variable from the file is not imported
Visualization of the robot pose¶
As soon as you have created a variable that represents a robot pose (variable type ‘Pose’ or ‘JointPosition’), you can display the value of this variable in the visualization as a preview. To do this, simply click on the variable in the table and the entry will be highlighted in color.
Visualization of a joint position¶
Variables of type ‘JointPosition’ are represented in the visualization by a transparent robot to distinguish it from the actual robot pose.
Visualization of a joint position. On the left is the actual current robot position, on the right is the transparent model as a preview of the selected joint position.¶
Visualization of a pose¶
Variables of type ‘Pose’ can be visualized in different modes:
- Wrist
If the variable is currently assigned a valid value that the robot wrist could also theoretically assume (without taking collisions into account), another (virtual) robot is drawn in the visualization of the scene. This robot model is displayed slightly transparently. It shows the pose/position that the robot would assume when moving off.
Visualization of a robot pose in ‘wrist’ mode¶
- TCP
If the variable is currently assigned a valid value that the end effector (TCP) could also theoretically assume (without taking collisions into account), another (virtual) robot is drawn in the visualization of the scene. This robot model is displayed slightly transparently. It shows the pose/position that the robot would assume when moving off.
Visualization of a robot pose in ‘TCP’ mode¶
- Part
If the variable is assigned a valid value that the currently gripped part could also theoretically assume (without taking collisions into account), another (virtual) robot is drawn in the visualization of the scene. This robot model is displayed slightly transparently. It shows the pose/position that the robot would assume when approaching. The virtual robot is only displayed if the robot has successfully gripped a part and is currently holding it in the gripper. If this is not the case, the currently active product is displayed at the pose(s) without a virtual robot.
- Show axes
Activate this setting to additionally display the pose as a simple, three-color axis system. This option is active by default, but can be hidden using the checkbox.
Note that axes are automatically displayed if you select a PoseList without using the Part visualization mode.
If an error occurs in a selected visualization (e.g. robot cannot reach pose due to geometry), this is displayed in red at the bottom next to the visualization modes.
Visualization of collisions¶
If you select a joint position or pose from the variable list, a preview is displayed in the visualization (see Visualization of the robot pose). In order to be able to check whether the robot or gripper would collide with other objects in the environment when setting up the position or pose, potential collisions are displayed directly in the visualization window. Colliding parts of the robot are colored red.
Visualization with collisions on the gripper¶
A message with a corresponding symbol also appears, indicating that the selected pose cannot be reached in the currently selected mode due to collisions. The individual collisions are displayed in a list below. Please note that this is only an indication. In some cases, the pose can still be used for a functioning and collision-free sequence. For example, collisions can occur with scene objects that change their position in the sequence. Another example is poses that are transformed again within a program sequence.
Product management¶
Overview¶
A product describes a physical object that is to be found and possibly gripped using 3D recognition. It consists of a name and various parameters for the object search and the gripping process. A distinction must be made between the (abstract/descriptive) “product” on the one hand and the concrete “object” on the other: The same product can be found multiple times during an object search. Each object is an instance of the product (with a specific position in space).
Screenshot of product management with single handle¶
Name¶
The product name identifies the part to be searched for and must fulfill the following criteria:
Must be unique, i.e. two products must not have the same name
Starts with a letter
Consists of alphanumeric characters (a-z, A-Z, 0-9) or underscores (‘_’)
Active product¶
During program execution, exactly one product is always defined as the ‘Active product’ (provided at least one product exists in product management). If product management only knows one product, this is automatically the active product. If a product-related action is executed, the active product is used for this action.
Example: If you use the task Start handle search, possible handles for the active product are searched for. However, if you define the variable ‘Product’ in the program editor, the system searches for the product you have defined, regardless of the active product.
The active product can either be set in the product administration using the ‘Use as active product’ button, or as part of the Mikado program using the Set active product task.
Object search¶
Each product contains the following parameters for the object search:
STL file / STL file (recognition)”¶
The mesh file (CAD data) of the object to be used for the display and object search is specified here. If nothing is specified under “STL file (recognition)”, the file specified under “STL file” is used for recognition. Otherwise, the file specified under “STL file (recognition)” is used for recognition and the file specified under “STL file” is only used for display. This means that a simplified mesh can be used for recognition, while the full mesh is shown in the display.
The following requirements and instructions must be observed when creating/using an STL file:
Use millimeters as the unit of measurement for the STL
Use meshes with as few triangles (faces) as possible - as few as possible, but enough to ensure that all important structures of the product are still well represented. The more triangles are used, the longer the computing time for collision checks, for example.
Select a sensible origin of the product coordinate system, for example at the center of gravity of the product.
If the product has symmetries, position the origin of the product coordinate system on the symmetry axis or plane.
If possible, remove all triangles that are in the product or are never visible.
Search algorithm¶
The search algorithm used for object recognition is defined here. Mikado Control offers various search algorithms to choose from:
Ensenso Partfinder (recommended), a search algorithm developed by Optonic, see also Partfinder documentation.
Halcon Surface Based, a search algorithm developed by MVTec. An additional license is required for this.
Min. detection score¶
The object search determines a score for each potential object in the scene. This score is the measure of the correspondence between the potential object findings and the model. The minimum value that a potential object must exceed in order to be considered a recognized object is specified here.
Expected number of objects¶
To speed up the object search, you can enter an expected number of objects here. In addition, the probability of finding an object increases if this value is set higher. If you want to limit the maximum number of objects to be recognized, you can set an upper limit here. If you have activated the reuse of previous matches, this restriction only applies to new finds (more on the topic of reuse of previous matches in section Object recognition tool).
Minimum distance¶
The minimum distance between two objects found is specified here. This has the following effects when searching for objects: If there are several potential objects close to each other, the one with the best score is selected and all other objects that are within the minimum distance are discarded.
Is spherical? - symmetrical to the xy-plane - rotationally symmetrical about the x-axis¶
Symmetries of the product are specified here. These have an effect on the orientation of the pose of a detected object. If an object is spherical, for example, the orientation of a detected object is always such that its axes are parallel to the corresponding axes of the global coordinate system (x parallel to x, y parallel to y, z parallel to z). If the product is symmetrical to the xy-plane or rotationally symmetrical around the x-axis, a found object is always aligned so that its z-axis points “upwards”. (The scalar product between the z-axis of the object and the z-axis of the scene is non-negative).
Hint
The prerequisite for this is that the origin and orientation of the product coordinate system have been configured appropriately in the CAD data.
Hint
This can reduce the number of gripping poses to be defined (for symmetrical objects, the gripping points below do not have to be created additionally). However, this is not a complete replacement for a rotation multiplication of a defined grip, for example.
Withdrawal distance¶
The distance between the gripping and picking pose is defined here. These poses are defined in the Gripping process section.
Minimum withdrawal percentage¶
Here, the minimum removal distance is defined as a percentage of the removal distance.
When checking the removal, the distance from the gripping pose to the removal pose is checked for collisions. It is possible to set that only a certain percentage of the distance must be covered, rather than the entire distance. These poses are defined in the Gripping process section.
Example: If a minimum extraction percentage of 70 % is set and a collision would occur after 80 %, the actual extraction pose is set to the pose after 79 % and free planning (towards the final pose) is carried out from this pose. This makes it possible to define the removal distance for the ideal case and, on the other hand, to define a minimum distance that must be travelled cartesian.
Travel distance¶
The distance between the pick and approach pose is defined here. These poses are defined in the Gripping process section.
Minimum travel time¶
The minimum distance for gripping is defined here as a percentage of the approach distance. The description in Minimum withdrawal percentage also applies analogously to this parameter.
Gripping poses¶
Gripping poses” are the poses in the product coordinate system to which the gripper may apply in order to grip the product. The gripping poses are defined via gripping multipliers, which can be used to multiply groups of gripping poses with each other. They are described in more detail in the following section.
External and internal grasps¶
Depending on the gripper, different types of grasps can be used:
- External grasps
The robot opens the gripper before it performs the gripping movement. At the gripping point, it closes the gripper to grip the product from the outside.
- Internal grasp
The robot closes the gripper before it performs the gripping movement. At the gripping point, it opens the gripper to grip the product from the inside (e.g. a hole or a recess in the product).
Which grasp types you can actually use depends on the gripper used. Create new grasps in the corresponding category to define the desired grasp type.
Gripping multipliers¶
Grab multipliers contain various combinations of the following properties:
Name
Category (Preferred, Standard, Experimental, <inherited>)
Position (x, y, z)
Orientation (Roll, Pitch, Yaw)
Multiplier (natural number)
symmetrical?
The name of a gripping multiplier must be unique for a specific product.
The category can be used to set which grips should be checked first (in the order “Preferred” > “Standard” > “Experimental”). If no category is set for a grip multiplier, it “inherits” the category of the grip multiplier above it. For rotation and translation multipliers, the category only affects “real” rotations and translations, i.e. not 1 (rotation) or 0 (translation) (see below).
If no handle of the categories “Preferred” or “Standard” is found, but only a handle of the category “Experimental”, the corresponding output variable in the Grab part task is set to true. This means that further processing can be made dependent on whether the handle was experimental or not. The picked objects can then, for example, be realigned or dropped into the box to be picked again.
The “Multiplier” property specifies the number of gripping poses within a gripping multiplier. A single grip, for example, always has a multiplier of 1, whereas rotation and translation multipliers always have a multiplier of at least 2.
The “symmetrical” property only exists for rotation multipliers (see below).
The individual multipliers available are explained in more detail below.
Single handle¶
A single grip always has a multiplier of 1. The position and orientation can be set for the single grip - i.e. a gripping pose is defined. As the multipliers always include the identity transformation, single grips must also be used for pure movement or rotation. Further rotations or translations can then be multiplied onto these.
Translation multiplier¶
A translation multiplier always has a multiplier of at least 2 and a position (translation) that acts as a generator of the various translations. The resulting translations are {0, T, 2*T, … , (m-1)*T}, where m is the multiplier value and T is the translation generator.
Rotation multiplier¶
A rotation multiplier always has a multiplier of at least 2 and an orientation (rotation) that acts as a generator of the various rotations. It also has the Boolean property “symmetrical”. If this is not set, the calculated rotations are {1, R, 2*R, … , (m-1)*R}, where m is the multiplier value and R is the rotation generator. If “symmetrical” is set, the resulting rotations are {-(m-1)*R, … -2*R, -R, 0, R, 2*R, … , (m-1)*R}.
Multiplication¶
If you have two grab multipliers and multiply them, all poses of one multiplier are multiplied by the poses of the second multiplier.
Example: Gripping multiplier M1: Translation multiplier (m=2, x=50mm, y= 0mm, z=0mm) Gripping multiplier M2: Translation multiplier (m=3, x= 0mm, y=50mm, z=0mm)
M1*M2 contains the following poses (x, y, z; roll, pitch, yaw):
( 0, 0, 0; 0, 0, 0)
( 0, 50, 0; 0, 0, 0)
( 0, 100, 0; 0, 0, 0)
( 50, 0, 0; 0, 0, 0)
( 50, 50, 0; 0, 0, 0)
( 50, 100, 0; 0, 0, 0)
In general, the number of poses in the product of two grasp multipliers is equal to the product of the number of poses of the individual grasp multipliers. (#(M1*M2) = #(M1) * #(M2))
Multiplier tree¶
It is possible to define several groups of gripping poses on a product, whereby each group in turn consists of several multipliers. This is possible in the multiplier tree: By adding a new gripping multiplier at the top level, a new group of gripping poses is defined. By adding a gripping multiplier A to an existing multiplier B, the multiplier is multiplied by B. New groups can be added at any level.
Example tree:
- A
- R
- B
- T1
- C
- T2
- D
Assuming A, B, C are single handles, R is a rotation with multiplier 5 (non-symmetrical) and T1, T2 are translations with multiplier 3, the following handles result:
- A
- A * R
- A * R^2
- A * R^3
- A * R^4
- B * C
- B * T1 * C
- B * T1^2 * C
- B * D
- B * T2 * D
- B * T2^2 * D
Global multipliers¶
Multipliers can be defined here, which are attached to each leaf of the gripping multiplier tree.
Example:
- Greifpunkte:
- A
- A1
- A2
- B
- B1
- Globale Multiplikatoren
- M1
- M11
- M2
This results in the following tree:
- A
- A1
- M1
- M11
- M2
- A2
- M1
- M11
- M2
- B
- B1
- M1
- M11
- M2
Collision Check for Grasp-Poses¶
If the Grasp-Multipliers lead to grasps that collide with the product, the Grasp-Tree displays a red bar as well as the number of colliding grasps. The colliding grasps are assigned to those Grasp-Multipliers that cause them. If such a Grasp-Multiplier is expanded, the assignment becomes more detailed. The following two screenshots show an example of this at different expansion depths.
Screenshot Grasp-Tree with Number of colliding Grasps (Expansion-Depth: 1)¶
Screenshot Grasp-Tree with Number of colliding Grasps (Expansion-Depth: 4)¶
Next to the Grasp-Tree is the tab Grasp-List. This holds all generated Grasps. Here too the collisions are displayed in the header via a red bar and the number of colliding grasps.
Screenshot Grasp-List (unfiltered)¶
Below the list there are buttons for filtering the grasps (similar to the Handle inspection). These can be used, for example, to display only the colliding Grasps. By deselecting “Valid” collision free grasps will be filtered out.
Screenshot Grasp-List (only colliding)¶
When a grasp from the Grasp-List is selected, it is displayed in the visualization. For a colliding grasp, the collision-points between gripper and product are marked via small red spheres.
Screenshot Grasp-List and Visualization of collision points¶
Setting up handles for interchangeable grippers¶
This section is only relevant for cells with multiple grippers.
If a multi-gripper is configured for a cell, the grasp setting looks like the following screenshot.
Setting up grasps for multiple grippers¶
The associated gripper group can be set for each grasp setting. All grasps corresponding to this grasp setting are assigned to the selected gripper group.
Several grasp settings can be defined for one product - and therefore also grasps associated with different grippers. The pick search only ever searches for grasps that are assigned to the active gripper.
Scene management¶
Overview¶
Scene objects describe objects and regions that are not included in the static description of the cell. These can be boxes, pure regions (so-called ROIs, “regions of interest”) or optional obstacles.
A scene object always has a unique name and a (default) pose. Other properties depend on the type of object. If an object has an “extension” (height, width, length), please note that the x, y and z coordinates of the default pose are the center coordinates of the region/object.
Hint
Before Mikado 3.0, the z-coordinate indicated the height of the bottom of the object. Since Mikado 3.0, the z-coordinate refers to the center of the object.
Screenshot of scene management (example of a recording box)¶
The default pose of a scene object can either be defined via the input fields or using the interactive markers in the visualization. If you click on the colored arrows, the position can be moved by holding down the mouse button. The colored rings allow you to rotate the rotation around the respective axis of the scene object.
Hint
The colored control elements can only be touched where they are not covered by another (partially transparent) object.
Interactive marker for scene objects (control elements in red, green and blue)¶
Hint
The input fields define the rotation values directly in world coordinates. If the interactive markers are used, the rotation values are converted directly into roll, pitch and yaw and several values may change simultaneously. This enables a more intuitive definition of the rotation setting via the interactive markers.
Obstacle¶
An obstacle is a physical object in the scene. It can be viewed as fixed or searched for using 2D search.
Box¶
Boxes are used in the pick search to describe the environment of the parts to be gripped. They contain the so-called transit pose which acts as the start and end pose for the grasp planning. The transit pose is specified relative to the pose of the box, not relative to the robot.
Boxes with an interfering contour (i.e. with an activated obstacle) from which products are to be picked always require a mesh file for collision avoidance.
Hint
If there is no physical box, e.g. because it is being picked from a table, the hook can be removed at obstacle.
Box search¶
For boxes that are not fixed in exactly the same position, there is a layer tracking function using 2D search. The top edge of the box is usually searched for, as this remains recognizable regardless of the box fill level, while the inner walls and base, for example, can be heavily covered by products or flexible packaging materials.
A 2D mask must be specified for the 2D search. This mask can be created in the Mikado application as follows:
Create ROI This should mainly only contain the upper edge of the box in the Z extension and cover the entire area in which the box can be located in the X and Y directions. The ROI may also be used in the program sequence to search for boxes again.
When creating the mask, the box should be aligned as orthogonally as possible in the image. Select the appropriate ROI under search parameters.
Visualize Select the Camera tab and select projected_heightmap in the selection menu. Then click on Search.
Save Right-click on the preview image to save either the raw version or a cropped and cropped version.
Post-processing The box mask should be exactly at right angles to the image. Variable noise and therefore incorrect contours should be reworked and removed or corrected. When searching for crates with variable height or with a high fill level where parts may protrude into the search ROI area, these areas should be masked out as transparent using the alpha channel. They are then not included in the search evaluation. The cropped variant masks out all pixels that do not contain the edge of the box by default.
Two examples of a 2D search mask for a crate. Above: the black background is included in the evaluation. Below: the transparent background is ignored during the search, any height values can be entered at these points.¶
In the example masks shown here, a crate is searched for using the top edge. In the 2D projection of the height data, the top edge of the crate stands out clearly from the surrounding floor and can therefore be used as a search mask. For the mask search, please note that the center of the mask represents the center of the object.
To include an obstacle in the collision avoidance, it is possible to specify a mesh file that describes the object. The origin of a mesh file must be centrally located in the base of the object.
If no mesh file is specified, the object can be described as a cuboid: placeholder size: Length dx, Width dy, Height dz. All obstacles with the search mode Search by image mask are initially considered as placeholder cuboids in the path planning until the first successful search operation in the program sequence. This cube should therefore cover the entire area within which the obstacle could potentially be located.
The parameters of the 2D search:
ROI
The ROI used to search for the obstacle can be selected in this dropdown. First create an ROI so that it is listed here. Make sure that the ROI is chosen generously in x- and y-extension. For good results, your search mask must be able to be mapped completely (i.e. including the border area) in the area of the ROI.
Min Score
Confidence value for the expected minimum match of search mask and camera image. This is output under Tools > Logs or in the console. A high value can lead to failed searches.
180° symmetry
If the object has rotational symmetry around the z-axis, this option can be activated. This property can be used to define clear transition poses despite symmetry. For example, you can activate this property for rectangular boxes.
Region of Interest (ROI)¶
An ROI describes a region in space - usually without an associated physical object. It is required, for example, in the object search to restrict the search space within which objects are to be searched for. The use of an ROI serves on the one hand to improve performance and on the other hand to reduce false finds (e.g. by hiding the background). In addition to its default pose, an ROI has size properties: length dx, width dy, height dz. If an ROI is selected, it has a direct effect on the following recordings and object searches.
Point cloud without ROI applied.¶ |
Point cloud with ROI applied.¶ |
Hint
The pose of an ROI can be adjusted at program runtime using the Set scene object position task. This is useful, for example, to adapt the ROI to the pose of a tracked box.
Object recognition tool¶
To optimize the recognition of your products in 3D data, you can change the object search parameters live in the object recognition tool. You can inspect the results of the changes directly. This tool also offers various views that allow you to understand the results and take measures to achieve better results.
You can use the object recognition tool by going to ‘Tune’ → ‘Recognition’ in the main menu. You will now see input options and buttons on the left and a visualization of the scene on the right (if not, switch to the ‘Visualization’ tab at the bottom right).
Screenshot of object recognition tool¶
Note
The tool cannot be used while a program is running.
Prerequisites¶
Before using the object detection tool, make sure that the following steps have been carried out:
- Configure the camera according to the requirements
Before you optimize the parameters for the object search, you should ensure that the 3D data is of sufficiently good quality. Look at the recorded point cloud to first check whether the hardware setup meets the requirements. If the data is very noisy or incomplete, create a new, suitable Camera configuration.
- Create product
To search for an object, it must first be created as a product in the Product management (see also tutorial A new product up to object recognition). Mandatory product parameters for using the object recognition tool are:
Search algorithm. We recommend using Ensenso Partfinder.
Set the product to active, see Active product
- Create search area (optional)
To avoid false finds, it is advisable to reduce the search area (see Region of Interest (ROI)) to the expected area. For example, no components can be located in the crate wall or in the crate floor, which is why the wall and floor should be excluded from the search.
First steps¶
By clicking on the ‘Record point cloud’ button, the 3D camera creates a new image and records the point cloud in the Visualization of the scene on the right. After a recording has been made, the object search can be started. A click on ‘Apply and find objects’ triggers the search for the currently active product and displays the results in the visualization. The total calculation time of the last search is also displayed under the buttons (Last calculation time).
Camera selection¶
On the one hand, a camera is selected here (provided that Mikado Control is used with several 3D cameras), and on the other hand, a specific search area can be restricted using a Region of Interest (ROI).
- Active camera:
Select the 3D camera from which you would like to obtain data for object recognition. You can of course also use other cameras for the same object search later in the program. This option is only available for setups in which several cameras are defined.
- Apply ROI:
If you activate this option, the generated point cloud is already filtered before the object search. Only points that lie within the specified ROI are displayed and used for the search. Try to define ROIs that are as restrictive as possible; this can greatly speed up detection and also ensure more reliable results.
Save last recording¶
If you would like to save the raw data from the last recording for diagnostic or analysis purposes, you can use the ‘Save last recording’ button. Select the desired directory in the selection dialog. Several recordings can also be saved in the same directory.
Visualization of the scene¶
The view settings can be used to change the display of the finds and the 3D data. The display of the point cloud before the object search is always the same: the points are colored according to their height (Z value).
Screenshot of object recognition tool point cloud after image acquisition¶
Found objects are drawn in grey in the visualization/point cloud as a CAD model and the corresponding scores are displayed. Points that are close to a find are shown in color (also according to their Z value). All other points are shown in gray.
Default view of the object recognition tool¶
Note
The points highlighted in color are cut out of the point cloud during normal program execution and are therefore excluded from collision monitoring. The size of the cutout can be set via the parameter dilation_radius_object_cutting in object_recognition.yaml.
Halcon-specific object recognition parameters¶
In this area, you can optimize the parameterization of object recognition. The initial values of the parameters correspond to the configuration of the project (see object_recognition.yaml). Please note that global parameters are specified in object_recognition.yaml, i.e. the parameters specified there apply to all products. You can adapt and test product-specific parameters using the object recognition tool.
Hint
All object detection parameters on this page are immediately active, even for the normal program sequence!
- Relative sampling distance (scene points):
Scanning distance of the 3D data relative to the diameter of the surface model (product). [0.0 - 1.0]
- Share of decisive points:
Proportion of sampled scene points that are used as key points for approximate matching. [0.0 - 1.0]
- Scoring Abstand:
- Maximum distance between model point and scene point, so that the point pair contributes positively to the score.Typical: local sensor resolution/2.
- Use normal information:
Activates/deactivates the use of normal information for approximate matching
- Calculation of the normal:
Method for calculating the normals.
‘fast’: fast procedure, quality of the standards is sufficient
‘mls’: computationally intensive procedure with very good results
- Exact pose refinement:
Activates/deactivates the refinement step of the object search
Sub-sampling rate: The higher the sub-sampling rate is selected, the fewer scene points are used for exact refinement.
Number of steps: Maximum number of iterations for exact refinement. The number of steps specified here represents a limit. If a stable result has already been determined earlier, the search is also terminated before this number is reached.
- Reuse previous matches:
Activates/deactivates the use of findings from the previous object search.
Hint
This setting should be deactivated during the optimization of the parameters, as the results of the individual object searches are otherwise dependent on each other. Only after you have found suitable values for all object detection parameters should you activate this function and fine-tune the following parameters.
Sub-Sampling-Rate: s.o.
Number of steps: see above.
Threshold value of the relative distance: Sets the distance threshold relative to the diameter of the model. Only 3D points whose distance to the object instance is less than this threshold are included in the refinement. Points that are further away from the instance are ignored. [0.0 - 1.0]
Use normal information: Activates/deactivates the use of normal information during matching
View (Halcon)¶
After an object search has been carried out, additional views can be selected for the Halcon search algorithm in addition to the standard view:
- Key points:
Instead of displaying the complete point cloud, only the key points are visualized. In addition, the findings are displayed with the point model of the product - this makes it easier to recognize how a product is scanned for the approximate search. It is recommended that the parameters are selected so that approx. 50-100 key points are located on the object.
Key points view of the object recognition tool¶
- Sampled points (refinement):
The display is similar to the view of the key points. However, the point cloud and the product are displayed here in the form used for exact pose refinement.
Refinement view of the object recognition tool¶
Handle inspection¶
Overview¶
The handle inspection tool is used to analyze the search for potential gripping movements. If N objects are found in a region and M pick points (see Gripping poses) are defined for the corresponding product, there are basically NxM potential pick movements – one for each combination of object and pick point. Each of these movements is first checked for potential collisions. As soon as the rest of the program requires a gripping movement (e.g. when a “gripping object” task is reached), the “best” movement is selected from all the valid movements found up to that point. The “quality” of a movement depends on several criteria (see below), including the position-height of the associated object and the length of the gripping movement.
Screenshot handle inspection¶
Gripping process¶
The gripping movement is basically divided into the following stages:
- Start up:
Starting pose → Approach pose
- Grasping:
Approach pose → Grab pose (linear travel in Cartesian space)
- Remove:
Gripping pose → Removal pose (linear movement in Cartesian space)
- Back up:
Removal pose → End pose
Gripping and removal are movements along a straight line in 3D space, whereas the robot can basically move freely when approaching and returning.
Schematic representation of the gripping process¶
Initial and final pose¶
The start and end poses are given by the transition pose of the surrounding object (box) belonging to the search. The start and end poses are therefore identical.
Approach pose¶
To calculate the approach pose, a certain distance is calculated “backwards” from the gripper pose. “Backwards” means away from the product, i.e. in the z-direction in the coordinate system of the gripper pose (z-direction of the “gripper_tcp” Urdf object). The distance between the approach and gripper pose is set via the parameters Travel distance and Minimum travel time.
Greifpose¶
If N product objects were found and M gripping points are defined for the corresponding product, the gripping pose in the world coordinate system results from the pose of the nth product object and from the mth product-specific gripping point (in the product coordinate system). The product-specific grip points must have been created manually beforehand.
Removal pose¶
Different strategies are tried out in a fixed sequence to calculate the extraction pose, see Gripping motion search. If extraction in one of the directions is not possible, the next direction is checked. The gripping process for a specific gripping pose is only considered to have failed if none of the variants leads to a feasible gripping movement. The distance between the removal and gripping pose is set via the parameters Withdrawal distance and Minimum withdrawal percentage.
Note
In general, path planning prevents any collisions between the robot, cell, scene objects, product objects and 3D point cloud. However, during picking (picking pose → picking pose), movements are also permitted that involve collisions between the objects to be picked (for more information, see section Gripping motion search). As these objects are not created as fixed scene objects, it is assumed that they are movable and insensitive to touch. If a completely collision-free movement is found, this is always preferred over a collision-prone one. This removal strategy increases the probability of a successful grasp.
Gripping motion search¶
The overall trajectory consists of four partial trajectories. Gripping and removal are movements along a straight line in 3D space, whereas the robot can basically move freely when approaching and returning.
The search for a valid gripping movement is carried out in the following steps, analogous to the above classification:
Collision check of the gripping pose (without attached object)
Gripping: linear (straight) movement in Cartesian space (not in joint space)
Approach
Collision check of the gripping pose with attached object
Withdrawal
Return journey
In (a) and (d), only one pose is checked at a time; in the other four steps, the sub-trajectories mentioned above are created (provided a valid plan can be found in each case). There are different search approaches for the individual sub-trajectories. If the search does not find a valid trajectory for a step, the gripping movement is discarded. The various search strategies for the partial trajectories are listed below:
Collision check of the gripping pose (without attached object)
Gripping: linear (straight) movement in Cartesian space (not in joint space)
Start up
by interpolation in the joint space
per free path planning
Collision check of the gripping pose with attached object
Removal (linear (straight) travel in Cartesian space (not in joint space))
collision-free
in grab direction (ExtractInGraspDirection)
top (ExtractUpwards)
in the direction of the final pose (ExtractTowardsFinalPose)
towards the center of the crate at a 60° angle to the (x,y) plane (ExtractTowardsCenter<Angle[°]>)
Object/octomap collisions are permitted
in grab direction (ExtractInGraspDirection_AllowOOCollisions)
nach oben (ExtractUpwards_AllowOOCollisions)
in the direction of the final pose (ExtractTowardsFinalPose_AllowOOCollisions)
in the direction of the center of the crate at a 60° angle to the (x,y) plane (ExtractTowardsCenter<Angle[°]>_AllowOOCollisions)
Overlap collisions are allowed
in grasp direction (ExtractInGraspDirection_AttObjObjColl)
upwards (ExtractUpwards_AttObjObjColl)
in the direction of the final pose (ExtractTowardsFinalPose_AttObjObjColl)
in the direction of the center of the crate at a 60° angle to the (x,y) plane (ExtractTowardsCenter<Angle[°]>_AttObjObjColl)
The order of the extract-functions can be set via the parameter extract_fn_order (String-List) in the pick_search.yaml. Only collision-free functions are to be listed. All others will be generated automatically.
Back up
by interpolation in the joint space (RetractInterpolating)
via free path planning (RetractFreely)
Note
The extraction trajectories ExtractTowardsCenter10 and ExtractTowardsCenter40 are deactivated by default. They can be activated in the pick_search.yaml by setting the parameters:
ExtractTowardsCenter10: true
ExtractTowardsCenter40: true
ExtractInGraspDirection¶ |
ExtractUpwards¶ |
ExtractTowardsFinalPose¶ |
ExtractTowardsCenter10¶ |
ExtractTowardsCenter40¶ |
ExtractTowardsCenter60¶ |
Object/octomap collisions¶
These are collisions of the object to be gripped with either
other product objects (but not with scene objects), or with
der Octomap.
This type of collision can be allowed via the parameter allow_OO_collisions_during_extraction in the pick_search.yaml.
Overlap collisions¶
These are collisions of the object to be gripped at the gripping pose. Due to inaccuracies in the position detection of the objects, it can happen that two objects slightly overlap (“collide”) in the scene. If this cannot really be the case, but is merely an artifact of object recognition, these collisions can be ignored. If overlap collisions are permitted during removal, the collisions that already occur at the gripping point are ignored along the removal trajectory until they no longer occur. If they occur again afterwards, they are no longer ignored. The collision depth up to which overlap collisions are permitted can be set in the pick_search.yaml via the parameters:
Set max_allowed_collision_depth generally or via
Set specific_max_allowed_collision_depths product-specific.
If two objects overlap to such an extent that the collision depth is greater than the specified threshold, these collisions are not ignored, even if they already occur at the gripping point.
Screenshot example of overlap collisions¶
Interpolation Parameters¶
In order to check trajectories in detail, further trajectory-points are repeatedly added between two trajectory-points, if they are too far apart. The thresholds determining whether two points are deemed “close enough”, can be set via the following parameters (the values shown are the default-values):
interpolation_max_translation_diff: 0.001 // 1mm
interpolation_max_rotation_diff: 0.01745329251 // 1°
cartesian_max_translation_diff: 0.01 // 10mm
cartesian_max_rotation_diff: 0.08726646259 // 5°
The cartesian_max_…_diff-parameters are used to determine the step-size of cartesian (partial) trajectories. This includes only those points that will be sent to the robot. The interpolation_max_…_diff-parameters are used for all interpolation-trajectories, as well as for any additional interpolation steps between cartesian points of the cartesian trajectories.
Smaller values, especially for the interpolation_max_…_diff-parameters, will lead to more trajectory-points. This in turn will lead to larger computation times.
Exclude certain search functions¶
It is possible to switch off individual extract or retract functions. The parameter search_fn_blacklist in the pick_search.yaml is used for this purpose. It expects a list of function names that should not be used. If one of the collision-free extraction functions is listed (e.g. ExtractInGraspDirection), all associated extraction functions are also automatically removed (ExtractInGraspDirection_AllowOOCollisions, ExtractInGraspDirection_AttObjObjColl).
Prioritization of the handles found¶
see Prioritization
Inspection of the gripping movement search¶
The number of robot poses (states) to be inspected results from the product of the number of objects found (N) with the number of gripping positions per object (M) multiplied by the number of intermediate robot poses to be inspected per gripping movement. The latter varies with the gripping movement: For longer movements, more intermediate poses need to be checked than for shorter movements.
Screenshot of handle inspection with description¶
As this quickly becomes confusing, a step-by-step selection is made in the inspection menu:
First, the object for which the potential gripping movement is to be displayed must be selected. The currently selected object is colored yellow in the visualization on the right - all other objects are displayed in blue.
If an object is selected, the corresponding handles are displayed in the next list (center left). The handle for which the potential gripping movement is to be displayed is selected here.
Once a handle – and therefore a potential gripping movement – has been selected, the individual search functions are displayed in the next list (top right).
If a search function is selected, the individual steps of the associated movement are displayed in the list below. The three radio buttons to the right of the list can be used to select what exactly is displayed in the list: The joint state of the robot, the pose of the end effector or the pose of the wrist. The movement can be played back in its entirety using the “Play” button at the top right of the list. If the selected step contains one or more collisions, these are displayed in the list at the bottom right.
If a collision is selected, the colliding parts are colored red in the display on the right (exception: the point cloud). Furthermore, the corner points of the collision area are marked with small white spheres.
Screenshot of collision display in the handle inspection¶
The special case in which the gripping position is outside the reach of the robot is characterized by the fact that the list of movements is empty. In this case, the robot is displayed in its basic state (all axis angles at 0°) in the visualization on the right-hand side. In addition, a gripper is shown in red at the unreachable gripping position in the visualization.
Screenshot of unreachable handles in the handle inspection¶
Search status¶
A status is displayed in color for each object, each grab point, each search step, each search function and each movement step. The colors have the following meaning (see also the legend in the screenshots):
light green: used (the object that was grabbed or the pick that was actually used)
dark green: valid
dark-gold: valid, but with overlap collision(s)
dark red: invalid due to collision(s)
matt-orange: invalid, because not reachable
bright-orange: (only free path planning) invalid, as no valid path found
gray: not yet calculated
In the list of trajectory points, there are also colored markings for some points on the right: * gray: is sent to the robot controller (In a simple interpolation run, for example, many intermediate points are checked, but only the start & end point are sent to the robot controller, as each robot controller takes over the interpolation independently). * Green: has been validated (If a previously found object is found again during an object search, the handles that have already been checked are checked again. This is particularly relevant if a handle was found using free path planning. In this case, free path planning is not carried out again during validation, but the previously found trajectory points are only checked again. Points marked in green indicate that the points have been validated).
In the case of movement steps, there are only the valid and invalid states. These indicate whether there is a collision for this movement step. In the other cases, there is also the undefined state.
For a search function, undefined indicates that the function has not yet been used (calculated). This occurs, for example, if a function already returns valid and therefore the other functions are no longer needed to determine whether there is a collision-free path.
For a search level, invalid indicates that all functions have been checked and have returned invalid. Conversely, valid indicates that at least one function has returned valid. Undetermined indicates that no valid function has yet been found, but that there are other functions in the undetermined state.
For a search movement, valid indicates that all associated search stages are valid. Conversely, invalid indicates that at least one search stage is in the invalid state. Undetermined indicates that no search stage is yet in the invalid state, but not all stages have been checked to completion.
For an object, invalid indicates that all associated potential grasping movements are invalid. Conversely, valid indicates that at least one valid associated gripping movement has been found. indeterminate indicates that no valid gripping movement has been found yet, but that there are other gripping movements in the indeterminate state.
For the grasping movement search as a whole, invalid indicates that all potential grasping movements are invalid for all objects found. Conversely, valid indicates that there is at least one valid grasping movement for at least one object.
Best handles¶
Prioritization¶
Prioritization takes place via the pick_selection_order parameter in pick_search.yaml. This parameter is a list of predefined strings, where each string specifies a sorting criterion. The list determines the criteria to be used for sorting and the order in which the criteria are prioritized.
Binning is used to compare all handles with regard to the various criteria. Binning involves grouping floating point values. This involves dividing the range of values from the respective best value into equally sized ranges (so-called bins). The bin value 0 is always the best bin (the first bin from the best value) and increasing bin values represent worse values. The size of these bins can be set using the bin_sizes parameter in pick_search.yaml. This parameter is a map of predefined strings (criteria) to double values (the bin size, each in the standard unit (e.g. [m] or [rad])), see also the example config files.
Available sorting criteria¶
The following predefined string values are available:
Bin name |
Meaning of the bin value |
|---|---|
|
0: Handle not yet tried to grip
1: Handle already tried to grip
|
|
0: Object not yet attempted to be gripped
1: Object already tried to grab
|
|
0: below trajectory distance threshold
1: via trajectory distance threshold value
|
|
0: has no real collisions
1: has (permitted) real collisions
|
|
0: has no pseudo-collisions (see Pseudo-collisions)
1: has (permitted) pseudo-collisions
|
The Boolean criteria can be transferred to the bin values: 0 stands for “criterion fulfilled”, 1 stands for “criterion not fulfilled”.
|
0: Preferred (B)
1: Standard (S)
2: Experimentell (E)
|
Categories can also be transferred to bin values. The best category (preferred) receives the value 0, the second best the value 1, etc.
|
0: Bin of the highest matching score
1..: Bins for lower matching scores
Default-Bin-Size: 0.1 (10%)
|
|
0: Bin of the highest z-value of all parts
1..: Bins for lower z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest z-value of all parts
1..: Bins for higher z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the highest wrist z-value of all handles
1..: Bins for lower wrist z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest wrist z-value of all handles
1..: Bins for higher wrist z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the smallest trajectory distance (see Trajectory threshold value)
1..: Bins for larger trajectory distances
Default-Bin-Size: 1.0471975512 (60° = 6 joints * 10°)
|
|
0: Bin of the highest z-value of all parts (in the coordinate system of the box)
1..: Bins for lower z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest z-value of all parts (in the coordinate system of the box)
1..: Bins for higher z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the highest wrist z-value of all handles (in the coordinate system of the box)
1..: Bins for lower wrist z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest wrist z-value of all handles (in the coordinate system of the box)
1..: Bins for higher wrist z-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest absolute x-value of all parts (in the coordinate system of the box)
1..: Bins for higher absolute x-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest absolute y-value of all parts (in the coordinate system of the box)
1..: Bins for higher absolute y-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the highest x-value of all parts (in the coordinate system of the box)
1..: Bins for lower x-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the highest y-value of all parts (in the coordinate system of the box)
1..: Bins for lower y-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest x-value of all parts (in the coordinate system of the box)
1..: Bins for higher x-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: Bin of the lowest y-value of all parts (in the coordinate system of the box)
1..: Bins for higher y-values
Default-Bin-Size: 0.05 (5cm)
|
|
0: bin for smallest total collision-depth (see Collision-Depth)
1…: bins for larger total collision-depths
Default-Bin-Size: 0.001 (1mm)
|
|
0: bin for smallest avg. collision-depth (see Collision-Depth)
1…: bins for larger avg. collision-depths
Default-Bin-Size: 0.0001 (0.1mm)
|
|
0: bin for smallest max. collision-depth (see Collision-Depth)
1…: bins for larger max. collision-depths
Default-Bin-Size: 0.0002 (0.2mm)
|
|
lower weighted bin is better |
The function picksearch.setUserBins(bins: [int]) can be used in a JavaScript-Task to set a bin-value for every found object. The number of given bins has to exactly match the number of found objects. When user_binning is included in the pick_selection_order, the bins set via the above function will be used during pick-sorting.
|
lower weighted bin is better |
If one criterion is not to be compared strictly after the next, but several criteria are to be combined, the weighted_binning parameter can be used. For this case, there is also the weights parameter in the pick_search.yaml, a map of predefined strings (criteria) to integers (weights), see also the example config files. All criteria that are not listed in this parameter implicitly have a weight of 0. To calculate the weighted bin, the bins are calculated for all criteria whose weight is not 0, then multiplied by the respective weight and finally added together.
If two handles have the same (binning) value in all criteria, they are sorted according to the trajectory distance (without binning).
|
All handles have a bin value of 1 |
|
Opposite of |
|
Opposite of |
Trajectory threshold value¶
The trajectory threshold value is determined using the trajectory distances of the previous successful grips. The mean value and the standard deviation are calculated from these. The threshold value is (mean value + 1.5*standard deviation) (up to and including version 3.0.0). From version 3.0.1 there is the parameter traj_dist_num_std_dev, with which the factor of the standard deviation can be overwritten. Furthermore, as of version 3.0.1 there is the parameter traj_dist_fixed_threshold, which can be used to set a fixed threshold value.
Collision-Depth¶
For each collision, the collision-depth is the depth of how deep two colliding objects are overlapping. The total collision-depth is the sum of all collision-depths of all collisions of all trajectory-steps of the Extract-stage (see Gripping process) (the only stage that allows collisions). The average collision-depth is the total collision-depth divided by the number of trajectory-steps in the Extract-stage. The max collision-depth is the largest collision-depth of a single collision of all trajectory-steps.
Note that different partial trajectories of the Extract-stage can be of different length. This can lead to one partial trajectories having a larger total collision-depth than another, but at the same time a smaller average collision-depth.
Note further that the computation of all collision-depths significantly increases the computation time of the pick-search. Therefore it is recommended that these selection-criteria are only used when necessary. The computation-time is also influenced by the number of trajectory-points, see also Interpolation Parameters.
Pseudo-collisions¶
Pseudo-collisions are collisions of parts with each other before they are gripped. This can happen when parts are directly adjacent to each other. In this case, the (small) inaccuracy of the object recognition can lead to two parts being recognized as being inserted into each other. However, as this is only an artifact of object recognition and the parts cannot actually be inserted into each other, such collisions are classified as “pseudo-collisions”.
Example config files¶
pick_selection_order:
- pick_not_tried_before # 0: not tried before, 1: tried before
- object_not_tried_before # 0: not tried before, 1: tried before
- traj_dist_threshold # 0: below threshold, 1: above threshold
- grasp_category # 0: Preferred (P), 1: Standard (S), 2: Experimental (E)
- no_real_collisions # 0: no real collisions, 1: has (allowed) real collisions
- no_fake_collisions # 0: no fake collisions, 1: has fake collisions
- score_binning # 0: bin for highest score, 1..: bins for lower scores
- traj_dist_binning # 0: bin for smallest trajectory-distance, 1..: bins for larger traj. dists.
- z_box_binning # 0: bin for highest z (relative to box), 1..: bins for lower z
bin_sizes:
score_binning: 0.03 # [1], == 3%
z_box_binning: 0.01 # [m], == 1cm
traj_dist_binning: 1.0472 # [rad], == 60°
Example with weighted_binning:
pick_selection_order:
- pick_not_tried_before # 0: not tried before, 1: tried before
- object_not_tried_before # 0: not tried before, 1: tried before
- traj_dist_threshold # 0: below threshold, 1: above threshold
- grasp_category # 0: Preferred (P), 1: Standard (S), 2: Experimental (E)
- no_real_collisions # 0: no real collisions, 1: has (allowed) real collisions
- no_fake_collisions # 0: no fake collisions, 1: has fake collisions
- weighted_binning # lower weighted bin is better
bin_sizes:
score_binning: 0.03 # [1], == 3%
z_box_binning: 0.01 # [m], == 1cm
traj_dist_binning: 1.0472 # [rad], == 60°
weights:
score_binning: 2
z_box_binning: 3
traj_dist_binning: 1
# => weighted_bin = 2*score_bin + 3*z_box_bin + 1*traj_dist_bin
Conditions¶
The bin values can be used to map conditions. For example, it may be that you only want to grab parts from the top layer. This means that you want the part for z (or z_box, i.e. z in the box coordinate system) to have the bin value 0. This can be mapped using the parameter max_bins_required.
max_bins_required:
z_box_binning: 0
If instead you want the part to be in one of the top two positions, you would select a max_bin of 1. Basically, you set the maximum bin value that a handle or part may have for this criteria (hence max_bin).
Handles that do not meet the max_bins_required conditions are discarded. In the handle inspection, they are given the color for “Unfulfilled criteria”.
In addition to these “hard” constraints, “soft” constraints can also be set, which cause the pick search to run a little longer if no pick has yet been found that meets all the conditions. The parameter for this is max_bins_extra_time, whereby the additional time granted can be set via the limit_extra_time_for_better_pick parameter (default: 400ms). The extra time starts from the first successful pick found.
If the parameter is not set, the following additional time conditions are used by default:
max_bins_extra_time:
object_not_tried_before: 0 # 0: not tried before, 1: tried before
traj_dist_threshold: 0 # 0: below threshold, 1: above threshold
grasp_category: 1 # 0: Preferred (P), 1: Standard (S), 2: Experimental (E)
This means that as long as all valid grasps found are experimental, are above the trajectory threshold or belong to a part that has already been attempted to be grasped, the search for better grasps continues – until the set additional time runs out.
Best handles display¶
Screenshot Best-Griffe¶
On the “Best handles” page, the valid handles found so far are listed in sorted order. The corresponding table consists of three column areas:
The first three columns show the rank (Rg) within the sorting, the order in which the handles were found (#) and the search time (SZ) in milliseconds (from the start of the handle search).
The last two columns indicate the names of the object that would be gripped with the handle and the handle itself.
In between, the values of the respective handle are displayed in the respective search criteria. The order of the columns depends on the order of the aforementioned
pick_selection_orderparameter. Please note:For Boolean criteria, an “X” is displayed if a criterion is not fulfilled. Otherwise the field is empty.
For unlimited criteria, the bin values are displayed. If the “Single values” checkbox (below the table) is ticked, the actual values are displayed instead.
The headings are abbreviated to save space. If you move the mouse over a heading, the whole name is displayed.
To make it easier to recognize from which criterion two consecutive handles differ, a dividing line is drawn between the handles from the first different grouping.
Double-click on a line to jump to the corresponding handle in the handle inspection.
Below the table, the units, the bin sizes and the respective best values are displayed for each binning column. Two display options can be set below this:
By ticking “Only best handles per object”, the list is filtered so that only the best handle is displayed for each object.
If you tick “Individual values (instead of groupings)”, the actual values are displayed instead of the bins.
At the bottom right, click on the parameter button to display the sorting parameters for the current search run. These can be copied to pick_search.yaml and changed there.
At the top left, as on the handle inspection page, there is a button to repeat the search. There is also a status display, which is green when the handle search is running and gray otherwise. The number of successful grips is displayed next to it.
Profiler¶
The runtimes of the individual tasks can be displayed on the Profiler page. The times are particularly interesting for tasks that execute robot movements or otherwise take up a lot of time and help you to optimize your process.
The interface shows you the complete program sequence similar to the Status page. The sequences and tasks are listed and the current status of a task is displayed. The last runtime of each individual task is displayed in milliseconds. Please note the following points:
If the task has not yet been executed, the last runtime is 0 ms. For very simple tasks (e.g. copying a variable), the runtime is very short, so that 0 ms is also displayed.
It may not be possible to display the runtime of the object and handle search itself, as this usually takes place parallel to the program. The duration of an object search can be determined using the Object recognition tool.
The runtimes of the object search and handle search can vary greatly. The duration of the object search varies depending on the environment, ROI and parameterization. The handle search depends on the number of objects found and can also take longer if the objects are positioned unfavorably.
Logs¶
Overview¶
The last 10,000 log messages are displayed on the log page. It is also possible to filter these. The filter options are
Select the log level of the messages to be displayed:
Debug
Warning
Info
Error
Fatal mistake
Select the time period for which the messages to be displayed have been logged
Text or pattern matching on messages
Select the ROS nodes from which the messages originated
Camera settings¶
The camera settings page offers controls for a live view, direct view of the camera data and the option to calibrate the camera. The view can be found in the menu under ‘Tools’ → ‘Camera’.
Note
The tool provided here is only intended as a supplement to camera-specific tools. To use an Ensenso camera, for example, you must first configure the camera using the Ensenso software (NxView) (see Camera configuration). This will ensure that correct 3D data is captured using your 3D sensor. You can then use Mikado Control to check the images or to switch between different configurations.
Live image 2D¶
At the top of the interface are the controls for directly controlling the 2D image recordings. You can view the image using the camera tab.
- Select camera:
If you have several cameras connected to the system, you can select the camera you want to use here
- Left camera / Right camera:
With this selection, you can specify whether you want to display the live image from the left or right 2D camera of the stereo camera pair
- Front light:
Activate this option if you want to actively illuminate the scene with the front light for every shot. If your model does not have a front light, this parameter is hidden and grayed out for file cameras.
- Projector:
Activate the projector if you want to project the pattern onto the scene during a recording. This pattern supports the capture of 3D data. The selection option is grayed out for file cameras.
- Start or Stop:
This button is used to start or stop live recording. Calibration cannot be performed while recording is started.
Hint
Changes to the camera parameters only affect the view. Starting the program while the 2D live image is still active will notify you that the live image is being switched off. The last active front light/projector settings are also reset.
Camera tab¶
You can view the image of a camera in the Camera tab. It is located on the right-hand side of the interface. If live recording is activated (see Live image 2D), you will see the live stream of the camera here.
- Image by:
- You can select the image channel in this selection field. If you have several cameras connected, you can change the camera here.
- Update:
Click on this button to search for new picture channels. As a rule, however, picture channels should be fully available from the start of the program.
A timestamp can be seen at the bottom right of the ‘Camera’ tab. Here you can see, for example, whether the live stream is currently activated.
If an object search has been carried out (even while a program is running), the underlying camera image is displayed on the image channel of the corresponding camera with the findings marked. The findings are shown in green as a grid.
You can switch to the live image at any time; the tabs for ‘Visualization’ and ‘Camera’ in the bottom right-hand side of the interface can be operated independently of the menu items.
If the image channel is changed, the currently displayed image is discarded and only when new image data arrives is it displayed
Hand-eye calibration¶
This section describes how to perform a hand-eye calibration. The TCP calibration procedure is described in section Calibrate TCP. Mikado Control supports different calibration variants for hand-eye calibration (HAK), which are selected depending on the installation and cell configuration. Before a calibration, it must be ensured that the calibration pattern is in a suitable position and that the camera (or cameras) are looking as centrally as possible at the pattern. The following table provides an overview of the different variants.
Automatic implementation for mobile camera |
|
Automatic implementation for fixed camera |
|
For multi-camera setup: Quick calibration of the secondary camera(s) |
|
For select cells or simulated robots: Set origin to pattern pose |
|
Outputs the transformation chain of the robot |
Tip
Use the Camera tab and possibly the Robot control to align the camera.
Note
The position of the camera defined in Cell geometry has no influence on the hand-eye calibration.
User interface¶
The individual elements of the interface are explained below:
- Select camera:
If you have several cameras connected to the system, you can select the camera you want to use here
- Setup:
Select the setup method that corresponds to your setup here. If you change the setup type, additional / different buttons and input fields are displayed according to your selection. A detailed description of the individual types can be found under Setup types.
- Calibrate:
This button starts the calibration
Hint
During calibration, you can see the individual images in the Camera tab in the image channel of the camera to be calibrated. The position of the calibration pattern is also shown if it is successfully detected.
- Cancel:
Cancel current calibration
- Camera recalibrieren:
Performs a dynamic stereo calibration. This improves the recognition of the calibration pattern and acquisition of the 3D data. A calibration pattern must be placed as centrally as possible in the camera’s field of view in order to perform the calibration.
Recalibration is particularly useful after the camera has been finally installed/screwed onto the system during commissioning.
- Output field:
The text field is used to output status messages during calibration. Here you can also see the progress of the calibration procedure, for example.
Setup types¶
Depending on the application and vision system, you must select the correct calibration procedure. All types are listed below and the settings that can be made are explained in each case.
Moving camera¶
In hand-eye calibration with a mobile camera, the transformation between the camera coordinate system and the coordinate system of the robot flange is determined. The position of the robot flange can be converted into world coordinates using the measured joint angles of the robot. This means that the camera image can also be converted into world coordinates with the aid of hand-eye calibration (HAK).
Transformation determined by the hand-eye calibration for a moving camera.¶
The camera is located on the robot arm and is therefore movable. The calibration pattern is placed in the center of the work area. During calibration, various robot poses are approached randomly. If the calibration pattern is visible at this point, the image is included in the calibration. The process is repeated until the required number of poses is reached. Once the calibration data has been successfully calculated, it is saved in the camera.
Further input fields:
Manual mode: No automatic calibration, further details in section Manual mode.
Number of poses: Number of valid poses that are to be approached for calibration. Poses for which the calibration pattern cannot be recognized are not counted.
Hint
If you switch to the ‘Visualization’ tab while calibrating a moving camera, you will see the scene and the robot. The poses that the robot has moved to for the recordings are also shown here as individual axis representations.
Fixed camera¶
In hand-eye calibration with a fixed camera, the transformation between the camera coordinate system and the world coordinate system is determined. This transformation can be used to convert the camera images into world coordinates.
Transformation determined by hand-eye calibration with a fixed camera.¶
The calibration procedure is the same as in the ‘Moving camera’ setup. The difference is that the camera is mounted statically at a fixed location. The calibration pattern must therefore be attached to the robot arm. The various poses are now approached by the robot and move the calibration pattern in the camera’s field of view. Instructions for attaching the calibration pattern can be found under Fastening the calibration plate.
Further input fields:
Manual mode: No automatic calibration, further details in section Manual mode.
Number of poses: Number of valid poses that are to be approached for calibration. Poses for which the calibration pattern cannot be recognized are not counted.
Transfer¶
The Transfer mode enables the transfer of calibration data from one camera to a second camera that is permanently installed. The setup is only used in systems with multiple cameras. In the Reference camera field, you can select the camera to be used as the source. Both a moving and a fixed camera can be selected as the reference camera.
To transfer the calibration, both cameras must view a common area. Position the calibration pattern in this area and start the calibration.
Further input fields:
Reference camera: Select an already calibrated camera (moving or fixed) to be used as the source for the calibration.
Set origin¶
You can also set the origin directly using the calibration pattern. The center point on the surface of the calibration plate is used as the origin by default in this mode. By additionally specifying a Pattern Pose, you can transform the origin relative to the calibration pattern and thus set an offset.
Further input fields:
Pattern Pose: Set a relative offset to the calibration pattern here. This allows you to place the origin at a position that cannot be physically reached with the calibration pattern.
Note
In the Ensenso calibration sample, the Z-axis is perpendicular to the top of the sample side of the calibration plate, the X-axis points parallel to the edges in the direction of the ‘Ensenso’ label, the Y-axis describes the edges at right angles to it.
Roboter¶
Outputs the transformation chain of the robot. This transformation chain is automatically used during hand-eye calibration to check the calibration of the robot joints. If a significant improvement in the quality of the hand-eye calibration can be achieved by recalibrating the robot joints, Mikado issues a corresponding message.
Furthermore, this transformation chain can be used in external tools to calibrate the zero positions of the robot joints.
Manual mode¶
In manual mode, you can control the individual calibration steps yourself. This option is available for the ‘Moving camera’ and ‘Fixed camera’ setup types. Manual mode allows you, for example, to manually move the robot to a suitable position for the individual recordings. If you activate this mode, you will see four new buttons:
Start: The calibration process is initialized. The current robot pose determines the starting position of the calibration.
Recording: This triggers a camera recording. If the calibration pattern cannot be found, a message is displayed in the output field.
New pose: The robot is moved to a random pose. If you have not yet performed a pre-calibration, the calibration pattern may not be fully visible at this pose. Alternatively, you can also move the robot manually directly via the robot controller in order to move to the next desired recording position.
Pre-calibration: If there are enough successful recordings/measurements, pre-calibration can be started. After this, only random poses that retain the calibration pattern in the field of view are approached.
Robot control¶
The ‘Robot’ page provides an interface and operating elements for your connected robot. The robot can be controlled and repositioned directly, and you can also determine the current position. Users with advanced knowledge can also send robot-specific commands, depending on the robot model. The robot is controlled directly using the various buttons. Each movement is collision-checked with all objects found by the object recognition or modeled in the scene.
There are three sections, Direct Movements , Grab and Move.
Direct movements¶
Active link:
Defines the reference point around which rotation is to take place for the movements to be executed rotationally. If, for example, Tcp is selected, rotation is performed around the coordinate origin of this link.
Coordinate system:
The axes of this coordinate system are used to execute the movements. If ‘Active link’ is selected, the coordinate origin of the active link is used. If ‘Robot’ is selected, the base link is used.
As an aid, you can imagine that the coordinate axes of the selected coordinate system are moved to the coordinate origin of the active link and then used as the basis for the movements.
Warning
The ‘robot’ coordinate system does not necessarily correspond to the world coordinate system!
X / Y / Z:
Clicking on an arrow increases/decreases the value on the respective axis by the specified increment (default value: 10 mm). The movements are executed in the ‘Active link’ or ‘Robot’ coordinate system.
Roll / Pitch / Yaw:
Clicking on an arrow increases/decreases the value on the respective axis by the specified increment (default value: 2 degrees). The movements are carried out in the ‘Active link’ or ‘Robot’ coordinate system.
J1 - J6:
Click on + / - to increase/decrease the value of the respective joint. This moves the robot arm in joint angles.
Crotch width:
The increment is specified here for Cartesian movements in the X/Y/Z direction. For rotational and joint movements, the increment is also specified here in degrees.
Show:
This allows you to display the coordinate systems of ‘Active link’ and ‘Coordinate system’ (see above).
Scaling coordinate system:
This allows you to scale the displayed coordinate systems.
Warning
Make sure that there are no objects in the cell or near the robot that are not modeled in the scene while you are controlling the robot.
You can also hold down a button, but you should be aware that the robot may execute the last command when you release it and move a little further. If you want a higher positioning accuracy, it is best to use the original manual robot control (teach panel).
Gripper¶
Open hand:
Opens the robot’s gripper
Close hand:
Closes the robot’s gripper
Move¶
A pose or joint angle position can be selected using the combo box button. The poses/joint angle positions of the currently loaded Mikado program are available for selection.
Activate the ‘Move’ option to get a pose preview and activate the mode.
Select which robot part the robot should use to move to the specified pose. However, this has no effect on joint angle positions.
Click on Move to move the robot to the displayed target position.
You will find the following output elements under the buttons for direct control:
Pose:
Position of the flange/wrist of the robot as a pose in the text display of Mikado Control.
Joints:
Position values of the robot as joint angle in degrees.
Robot parameters¶
If the robot has model-specific parameters or functionalities, these will also be shown on this page. A description of the model-dependent control elements can be found in the Robot models chapter.
Robot tracking¶
The ‘Tracking’ page allows you to track the robot’s movements. The robot states of the last N seconds are saved temporarily for this purpose, whereby you can set N. The robot states are displayed in a list and can be selected.
The screenshot above shows the tracking page. The meaning of the various page elements is explained below.
Time since last filing: Allows you to change the display of the time column. If the check mark is set, the times are shown relative to the last previous filing (or to the original state if no filing has taken place). Otherwise, the time is simply shown as a time.
Display paths: If the check mark is set, the robot’s movement steps contained in the list are combined into a path and visualized. Partial paths are colored blue if the robot has an attached object. If the check mark is not set, the paths are hidden.
Jump to previous filing: If a line is selected in the list, you can jump to the previous filing (as seen from this line). If “Time since last filing” is set, you jump to the line that has the time value 0 (or to the beginning of the list if the last previous filing has already been removed from the list).
Replay button: Replays the movement of the robot in the visualization, with the same time intervals as they occur between the individual steps. The only exception is that the maximum time interval for playback is limited to 1s so that the user does not have to wait too long if the robot has not moved for a while.
Time interval [s]: The time interval specifies how far back the tracking should go. For example, at 120 seconds, the robot states of the last two minutes are temporarily stored and displayed. Exceptions are cases where there were fewer than “Min. number of states” or more than “Max. number of states” during this period (see the following two points).
Min. number of states: This parameter specifies the minimum number of the last states to be temporarily stored and displayed. If there were fewer (different) states in the specified time interval, older states are also displayed.
Max. Number of states: This parameter specifies the maximum number of the last states to be temporarily stored and displayed. If there were more (different) states in the specified time interval, the entire time interval is not displayed.
Left bar: If a state in the list on the left has a blue bar, this means that this state has an attached object. This makes it easier to find phases with and without an attached object.
Visualization: If a state is selected in the list, it is displayed in the visualization without transparency. At the same time, the current robot state (the last entry in the list) is displayed semi-transparently. If no state is selected in the list, the last (current) state is always displayed without transparency.
Overview of robot inputs and outputs¶
The page offers functions for displaying robot inputs and outputs. In addition, robot outputs can be set and the page can be configured as required. To use the functions described below, there must be a connection to the robot. The page is intended to support troubleshooting in the overall process. The view can be found in the menu under ‘Tools’ → ‘I/O’.
Screenshot of setting the robot I/Os¶
Adding/removing I/Os¶
On the right-hand side of the screenshot above, you can see various elements for adding and removing inputs and outputs.
- Add 8 I/Os:
Adds 8 inputs and outputs starting with the start index shown in the spin box below. If the spin box is set to 10, inputs and outputs 10 - 17 are added.
- Add E/As:
Adds an input and output with the start index that can be seen in the spin box below.
- Update I/Os:
Reads all inputs and outputs in the list and displays their result. If the circle with the white base and the green border points to the right, the output is true; if it points to the left, it is false.
Setting outputs and labeling the I/Os¶
The list can be edited and saved to provide the best possible overview of the inputs and outputs that are important for the application.
- Set outputs:
By clicking on the circle with the white base and the green border to the right of the output, it can be set to false or true.
- Labeling:
In order not to lose track of the inputs and outputs, they can be labeled. If the same number is assigned to an input and output, it can be helpful to make a note of this in the labeling.
- Save the list:
In order to have the list and label permanently available even after restarting Mikado, it can be saved using the diskette symbol above the list. Only one list can be saved per Mikado cell.
- Reset the list:
To reset a change to the last saved status, press the arrow next to the diskette symbol.
If there is no connection to the robot or it is faulty, no input or output can be set or read via Mikado. In this case, the circle is outlined in red and contains a red cross, as shown in the following image.
Screenshot Error when reading the inputs and outputs¶
System-Tools¶
The System tools page is located under the menu item ‘Tools’ → ‘Tools’. The following elements can be found here:
System¶
Elements for general interaction with Mikado:
Exit Mikado: Exits the Mikado application after displaying a dialog for confirmation
Shut down controller: Opens the dialog of the operating system to shut down or restart the controller. Without any further user interaction, the Mikado controller is automatically shut down after a waiting time of 30 seconds.
Full screen mode / Exit full screen mode: Switch the Mikado interface between full screen mode and window mode.
Note
The elements ‘End Mikado’ and ‘Full screen mode’ are locked when password protection is switched on and are only enabled once the correct password has been entered.
Mikado¶
Information about the Mikado software version is visible in this section. This includes, for example, the Mikado edition used, the installed software version and the directory of the currently open Mikado cell.
Developer tools¶
The Mikado interface can be set to developer mode using the “Activate developer mode” checkbox. This mode is intended for internal use and is used, for example, for testing the software.
Profiling¶
With the help of so-called profiling, certain activities of the Mikado system can be recorded and subsequently analyzed. The activities of the system are time-stamped and saved in a proprietary binary format in a file of the type .nxlog. These files can then be viewed via the external application NxProfiler, which visualizes the previously recorded activities of the system on a timeline. Profiling can be used, for example, to identify time-consuming function calls in order to optimize the cycle time of an application.
The Mikado system is divided into three different sections whose activities are recorded separately. These are:
Mikado: Contains the activities of the Mikado main program, in particular e.g. the Mikado program sequence, handle search, path planning of the robot etc.
Ensenso: Interface between the Mikado application and the Ensenso camera with camera-specific functionalities (e.g. calculating the octomap, cutting out objects from the point cloud, applying ROIs, forwarding function calls to the NxLib)
NxLib: Activities of the Ensenso NxLib API (program library on which the Ensenso interface is based). Contains deeper information about the interaction with the camera, for example processing functions (stereo matching), PartFinder search algorithm and network communication between controller and camera.
Screenshot Tools Profiling¶
The type and number of recorded activities are influenced by the selected log level. This can be set individually for each of the three sections mentioned using the drop-down list. The following levels can be selected in ascending order:
Info: Basic information
Debug: More information about partial steps of commands
Trace: Complete logging of all calls
Hint
As the log level increases, all information from the lower levels continues to be recorded, but additional information may be added. Log level Debug therefore also contains all information from level Info, for example.
The following interaction options are available for each section (Mikado / Ensenso / NxLib):
Log level menu: Select the desired log level (see above). The menu is deactivated if the profiler is already active.
Start: Starts profiling for this section with the set log level. If the profiler is active, a timer is automatically started which writes the collected data to the designated file every 15 seconds.
Stop: Stops profiling for the section and saves the collected but unsaved data in the corresponding file.
Open log in NxProfiler: Opens the saved file for the corresponding section in the external application NxProfiler.
Warning
When the Mikado application is restarted, the recorded log files of a Mikado cell from the previous session are emptied and overwritten. The files therefore only contain information about the currently active or last started session of this cell. However, different cells contain separate files that are not overwritten by other cells.

