Simulation¶
Almost all sub-components of Mikado can be set to simulation mode either individually or all at the same time. For example, it is possible to use recorded images (Filecam) to optimize a process with a simulated robot in the office. The integrated physics simulation enables containers to be filled with parts to be handled on the basis of the mesh models. This means that there is no need to obtain camera images beforehand. This is ideal, for example, for evaluating different gripper variants without having the grippers manufactured in advance.
Hint
Only very limited conclusions can be drawn from the results of the simulation about the cycle times that can be achieved in reality. The required acceleration values and reaction times of the robot controller are generally not accessible and also depend on the specific configuration. If you have a license (or test version) of the simulation software of your robot manufacturer, you can of course also use Mikado with it, please contact us for details.
Roboter-Simulation¶
In the configuration file ‘config/manipulator.yaml’, the variable ‘simulated_robot: true’ can be used to switch to simulation mode. Mikado will now no longer make contact with the real robot, but will follow the trajectories offline.
Recorded image data (Filecam)¶
You can save image data manually in the application Mikado, automatically from a program sequence, or also in NxView in order to load it again later as Filecam. To view such image data, start NxView, “Create…” → “Filecam”. Select the folder with the saved images and make a note of the name of the camera, this is automatically “File[serial number]”. Open your cell in the Mikado Assistant and enter the new name under “Parameters” → “Cameras”. Alternatively, you can also enter the line “camera_serial_no: File[serial number]” in the “config/camera_0.yaml” file. The Filecam is now used instead of the real camera. The images are rotated with each shot. If the images were saved directly by Mikado, the point cloud will also be displayed at the correct position in the room. If the Filecam was saved by NxView, this only works with calibrated stationary cameras.
Hint
Preferably use the “Save last image” button under “Tune” → “Detection” or the “Save image” task in the program sequence. This is the only way to save the current position of cameras mounted on the robot. If you nevertheless create filecams in NxView, please ensure that you do not save them as a ZIP file.
Simulation based on mesh files¶
This chapter describes the add-on program Mikado Simulator, which you can use to provide synthetic camera images as input to Mikado. For this purpose, a box is filled with mesh files of the product in a physics simulation and then images are captured with a so-called “virtual camera”. The stereo matching and object recognition function in the same way as real image data.
Hint
In general, the simulator must be started after Mikado. You will find a separate link for this on the desktop or in the cell directory.