Simulator - Adjusting the camera settings with scene from Simulator

If there is no robot and no camera yet and you want to create a simulation, it is often necessary to adjust the camera settings. The following section shows the steps for creating the new camera settings.

Procedure

1. cell creation: A simulated cell is used as an example, in which a box is filled with crankshafts.

Screenshot from the Mikado Simulator

Screenshot from the Mikado Simulator

Open NxTree: The scene from the simulator can be opened in NxTree. To do this, Mikado and the simulator must remain open. After starting NxTree, the following window opens. The selection should be made as in the following window.

Selection of the scene from Simulator in NxTree

NxTree startup window

3. open NxView: The camera to be set must then be opened in NxView.

Selection of the camera to be set in NxView

Selection of the camera to be set in NxView

4. open NxTree in NxView: An exemplary scene is displayed in NxView. To transfer the simulator scene, NxTree must be started in NxView. This step can be seen in the following illustration.

Screenshot NxView

Screenshot NxView

Copying the elements: The following illustrations show NxTree of the scene in NxView (left) and the scene in the simulator (right). If you lose track of which window belongs to which scene, you can check the objects, for example. In the simulator scene (right), crankshafts have been thrown into the crate. These can be found in the right-hand window under Objects (see red rectangle). This window therefore belongs to the simulator. To transfer these objects, they must be copied and pasted as shown in the following illustrations. The command Copy value as JSON string appears after Objects has been clicked with the right mouse button.

Selection of the camera to be set in NxView

The objects must then be inserted into the scene associated with NxView (left-hand window). To do this, right-click on Objects and select Apply JSON value to this item/subtree.

Selection of the camera to be set in NxViews

In the window that opens, the Content as JSON String field must be filled. To do this, click on the field with the right mouse button and then on Insert. You will then see the content in the field.

Selection of the camera to be set in NxViewf

This procedure for Objects must be carried out analogously for Links and the Link of the corresponding camera (see red rectangles).

Selection of the camera to be set in NxViewf

6. adjusting the camera settings: When closing NxTree, the scene from the simulator is now visible. The camera parameters can now be adjusted so that the crankshafts are recognized as well as possible.

Selection of the camera to be set in NxViewf