Simulator - Configuration¶
This page can be accessed via the main menu ‘Setup’, submenu ‘General’.
Configure the simulator and add and manipulate individual objects.
General setup¶
This item allows you to restore a previous simulator state. The following settings are loaded:
Crate objects with drop zone
Product objects with individual product properties
The following parameters can be set permanently in the respective cell folder in launch/simulator.launch:
Camera serial number and features
Fixed or movable camera
Default product mesh file
Automatic mode: Default parameter
Automatic mode: Default for “Start immediately after simulator start”
Camera Setup¶
This sub-item shows the currently set camera serial number and whether it is fixed or movable. The value for the noise level can be selected from 0 to a maximum of 30 and is applied after confirmation. This setting can no longer be adjusted during automatic mode.
Box setup¶
So far it is possible to work with exactly one box.
This sub-item allows you to adjust the parameters of the active crate. On the one hand, this means the pose consisting of xyz coordinates and rpy rotation angles. Secondly, the dimension and height of the drop zone can be defined for each crate. Its orientation is linked to the orientation of the crate.
Product setup¶
This sub-item allows you to select the product that is to be simulated and dropped over the box. To define the product, a mesh file must be specified and whether it has 180° rotational symmetry around the x-axis. The latter also allows detections rotated by 180° to be classified as correct in the evaluation. The ‘Reflectance’ property can be used as a material property to simulate how strongly the object should reflect the camera’s projector light. To add parts, a corresponding number must be selected. With ‘Add’, the parts are then placed randomly in the drop zone in terms of both position and rotation. A uniform distribution is used as the probability distribution. By default, 20 parts are simulated at once. If more are added, the simulation is carried out in several tranches.
Hint
The physics simulation takes place over a set period of time. The ‘simulate_total_duration’ parameter in the cell definition under launch/simulator.launch can be adjusted for high or very low launch heights.
Hint
The number of simulated parts should be selected so that initially no or only a few collisions occur during random positioning in the drop zone.
Hint
Convex parts can sometimes lead to collisions between objects and the crate in the physics simulation.
Objects¶
This status display shows all objects currently in the system. Recognized objects have a bold name, successfully picked objects have a crossed-out name. Clicking on an individual object highlights it in color in the visualization and shows its details, such as position, orientation, symmetry and reflective properties. The pose of the object can be adjusted here using the input fields and applied by clicking on ‘Apply’. Such changes to the pose are not checked with the physics simulation. When manually adjusting an object position, make sure that there is no overlap between objects, containers or scene objects in the created scenario.