Skip to main content
. 2024 Oct 30;24(21):6986. doi: 10.3390/s24216986
Algorithm 2: Pseudo code of hardware based Adaptive SLAM for robotic services
  1.   Service Robot (SR) initialize services and ready at parking station.

  2.   If (Task assigned)

  3.   Case (Task type)

  4.   State_1: (Task type = Multitask)? State_2: Static SLAM.

  5.   State_2: (Task sort)? Task destination: Task sort.

  6.   Case (Task_destination)

  7.   State_11: (Task_destination = Static Task sort _n)? State_12: Accomplished.

  8.   State_12: (Task_destination = Adaptive Task)? Adaptive SLAM: SLAM static.

  9.   Case (Static SLAM)

  10.    State_SS1: (Navigation sort_n = Task_destination_n)? Accomplished: State_SS2.

  11.    State_SS2: if (Current Node == Dest_ Node) begin

  12.             Current Node <= start position.

  13.                else {Current Node <= Current Node + 1}.

  14.   Case (Adaptive SLAM)

  15.    State_AS1: (Adaptive task)? Task assigned <= Adaptive task: Task_destination.

  16.    State_AS2: (Adaptive task sort)? State_AS3: State_AS2.

  17.    State_AS3: (Task destination <= Task sort)? Static SLAM: State_AS3.

  18.    end case, End.