Algorithm 3: Pseudocode for parking by truck–trailer robot |
If ((TL & TF = dmin) @ (SLF_90 ≥ dmin_ϑ90
0) && (SLL_(135) ≥ dmin_ϑ45
0))
forward
else
return
end
Case (forward)
Park_pr: (SLF ≥ dmin)? Park_db: Park_db1
Park_db: (SLF_45 ≥ dmin_ϑ45
0) && (SLL_(135) ≥ dmin_ϑ45
0)? Park_db1: Park_sb
Park_sb: Case (Park_Move)
Park_1: TL Angle_move & TF mimic @ (ϑ15
0,30,0,30
0,15
0)
Park_2: TL& TF Move back @ behavioral control.
Park_3: ((SLL_135 = dmin_ϑ15
0) && (SLR_(0) ≥ dmin_ϑ90
0))? Stop: Par
Park_4: TL forward & back with dmin and leave parking point.
end case
Case (Park_db1)
Park_11: (SLF ≥ dmin)? Park_1: Park12
Park_12: TL Angle_move & TF mimic @ (ϑ45
0)
Park_13: TL = dmin @forward, TF mimic
Park_14: TL Angle_move & TF mimic @ (ϑ45
0), Parking_move
end case
end case
Case (return)
Park_r1: TL forward & back with dmin and TF starts mimic.
Park_r2: TL & TF Move forward @ behavioral control.
Park_r3: TL Angle_move & TF mimic @ (ϑ15
0,30,0,30
0,15
0)
Park_r4: TL & TF Move forward @ behavioral control.
end case
|