Skip to main content
. 2023 Jul 11;23(14):6297. doi: 10.3390/s23146297
Algorithm 4 Decision-making for avoidance maneuvers
Input: Ot                        ► Ot: object IDs
and locations at current frame
Output: At                        ► At: object IDs
and locations at current frame
1: for object in Ot:
2:     position3D position of object                  ►
acquire 3D position of object
3: if position.z<dstopThresh :
4:         emergency stop before proceeding
5:         break
6:     if position is inside RSafeWindow:
7:         mark object as hostile               ► consider object as
a threat if inside SafeWindow
8:         if position.z<davoidThresh:      ► execute avoidance maneuver if
distance is below threshold
9:             if position.xy in upperRegion:
10:                 move downward at v m/s until outside of RSafeWindow
11:             if position.xy in lowerRegion:
12:                 move upward at v m/s until outside of RSafeWindow
13:             if position.xy in leftRegion:
14:                 move right at v m/s until outside of RSafeWindow
15:             if position.xy in rightRegion:
16:                 move left at v m/s until outside of RSafeWindow
17:     break