2.6.4. Tutorials
The following tutorials demonstrate how to use commands in the voraus.operator to build robot programs. For more application-oriented examples, refer to the Use Cases section, the Examples section or the voraus.pioneer Examples documentation.
Custom Commands
Introduction
The tutorial demonstrates how Custom Commands simplify the program creation.
Within the tutorial a program is created from scratch using Custom Commands. As example application the deburring of a wheel rim with a deburring tool is considered. (Fig. 148).
In detail,
the deburring tool has to be taken from the green box (Fig. 148/➊),
moved around the wheel rim (Fig. 148/➋) and
be placed in the red box (Fig. 148/➌).
The tool is picked up and held by the gripper mounted to the robot flange.
Note
Throughout the tutorial only the gripper is shown but not the deburring tool.
Getting Started
Requirements
3D Visualization
For better illustration and to improve understandability, the visualization is populated with the objects described and
shown in Fig. 148.
To display the 3D objects in the visualization, the files describing the 3D objects and their location have to be moved
to the /srv/voraus/voraus-hmi/assets/environments folder as sub-folder.
Note
The 3D objects are not required to replicate the tutorial. All poses and motions work with and without the 3D objects present.
Gripper
The application uses the Robotiq_2F-85 gripper. To activate the gripper, open the Settings
(Fig. 149/➊) and select Tools (Fig. 149/➋).
In the tool list search for the Robotiq_2F-85 gripper and activate it
(Fig. 149/➌). If you try to execute the program without activating the correct
gripper, an error will be raised.
Custom Commands
The tutorial requires the Custom Commands:
Move Circular,Handling - Pick ObjectandHandling - Place Object.
All required Custom Commands are part of the virtual setup and can be found under Settings (Fig. 150/➊) in the Commands (Fig. 150/➋) tab. If required, add the Custom Commands by clicking the Import icon (Fig. 150/➌).
Implementation Steps
First let’s create an empty program which afterwards is edited step by step to the needs of the application.
To create a new program, go to the home screen and click the New Program button (Fig. 151/➊). Give the program an expressive name (Fig. 151/➋) and description (Fig. 151/➌). Afterwards, save the program (Fig. 151/➍).
The application consists of the following major steps:
picking the tool from the green box,
moving the tool along the edge of the wheel rim, and
placing the tool in the red box.
For each of these steps it is favorable to have a pre-action-pose and post-action-pose above the pose at which the actual action (like pick, place, etc.) is performed (“action-pose”). With the help of the pre/post-action-poses collisions, etc. can be avoided.
For the application at hand the Custom Commands provided by voraus robotik can be used:
Handling - Pick Object,Handling - Place Object, andMove Circular
The provided Custom Commands simplify the program creation for the application significantly, for example, by implementing and encapsulating all necessary movements between the pre-/post-action-pose and the action-pose.
As demonstration compare Fig. 152/➊, showing the program for step 1 without the Custom CommandHandling - Pick Object, and
Fig. 153/➊, showing
the program for step 1 with the Custom Command Handling - Pick Object.
Fig. 152 Step 1 without the Custom Command Handling - Pick Object
Fig. 153 Step 1 with the Custom Command Handling - Pick Object
By just adding the Handling - Pick Object Custom Command all required sub-commands for step 1 are automatically
included in the program.
Continuing the program creation it seems reasonable to choose the same pose for the pre-action-pose and
post-action-pose and to define the pre/post-action-pose relative the action-pose.
In other words, the following settings of the Handling - Pick Object Custom Command have to be adapted:
The pick-pose (Fig. 154/➊)
The Configuration Method, to tell the command that the pre-action-pose and post-action-pose are equal and defined relatively to the action-pose. (Fig. 155/➊)
The offset for the pre/post-action-pose defined relatively to the action-pose (Fig. 155/➋).
For step 2 one can use the Custom Command Move Circular.
The Move Circular provides a clean and easy to use UI interface for a circular move command,
otherwise, only accessible via the voraus Python-API.
Due to its complexity, the Move Circular command
does not provide a pre-action-pose and post-action-pose, and the corresponding move commands.
Therefore, one has to define these sub-commands manually. To keep the program
readable and clean, a group command should be created in which all commands regarding the circular motion
around the wheel rim are added. In other words, the group command shall contain the following commands
(Fig. 156/➊):
a PTP command to the pre-action-pose
(pre-action-pose: Joint CS = [-200.21, -83.59, -142.39, -44.02, 90.00, 110.21] | Robot CS = [400, 0, 10, -180, 0, 0]),a linear command to the action-pose
(action-pose: Joint CS = [-200.21, -94.11, -146.37, -29.51, 90.00, 110.21] | Robot CS = [400, 0, -50, -180, 0, 0]),a command to perform the circ action
(center-pose: Joint CS = [-191.39, -123.54, -100.04, -46.42, 90.00, 101.39] | Robot CS = [700, 0, -50, -180, 0, 0]), anda linear command to the post-action-pose
(post-action-pose: Joint CS = [-200.21, -83.59, -142.39, -44.02, 90.00, -249.79] | Robot CS = [400, 0, 10, 180, 0, 0]).
The Move Circular command provides different options to define a circular motion and many more parameters to
tune the command to the needs of the application. For the application it seems reasonable to define the circle via
the Angle And Center method (Fig. 157/➊).
For the tool orientation along the edge of the wheel rim, it seems reasonable to choose the Orientation Interpolation option Constant to path (Fig. 158/➊). The Constant to path ensures that the tool always keeps a constant orientation with respect to the circle along the circular path.
Finally, in step 3 the tool must be placed in the red box. Similar to step 1 the pre-action-pose is chosen equal to
the post-action-pose and defined relatively to the action-pose
(Fig. 160/➊ + ➋). The action-pose
is chosen as shown in Fig. 159/➊.
However, instead of the Custom Command Handling - Pick Object, the Custom Command
Handling - Place Object is used.
Video
The following video shows the final application created in the tutorial.