|
Algorithm 1 Security algorithm without human recognition |
|
Input: Stereo stream from the depth camera and tag position from the RTLS system.
Output: Robotic system speed (%).
-
1:
Initialize depth camera parameters (resolution) and RTLS system (OPC UA).
-
2:
Set , , , , , and as the known dimensions between the depth camera (C), robotic system (R), and beginning of the RTLS coordinate system.
-
3:
Save the reference depth image into .
-
4:
while the robotic workplace is switched on do
-
5:
Save actual depth image into .
-
6:
Determine .
-
7:
Convert to grayscale.
-
8:
Eliminate initial measurement errors.
-
9:
Scale the values using Equation (4).
-
10:
Convert into a binary image using the function .
-
11:
Contour search with the function .
-
12:
Perform distance calculation between each value in the contour and the robotic system .
-
13:
Convert coordinates to RTLS system coordinates.
-
14:
Find all contours where the RTLS system coordinates match with the contour coordinates and the RTLS tag ID is set to have an exception.
-
15:
if no other contours are found then
-
16:
Set .
-
17:
else
-
18:
find of the remaining contours.
-
19:
if
≤
then
-
20:
Set for the danger zone.
-
21:
else if
≥>
then
-
22:
Set for the warning zone.
-
23:
else
-
24:
Set for the safe zone.
-
25:
end if
-
26:
end if
-
27:
end while
|