Research Article

Neural Behavior Chain Learning of Mobile Robot Actions

Pseudocode 1

Pseudocod of action creating.
Step 1: Start, Move = 0
Step 2: Send command “Track Color” in order to get back
the array of the data
if (RCVData > 55 & RCVData > 25) then
 Move = 1; action (move of the robot to the left)
else if (RCVData < 35 & RCVData > 25) then
 Move = 1; action (move of the robot to the right)
else if (RCVData < 140 & RCVData > 25) then
 Move = 1; action (move of the robot straight ahead)
else if RCVData > 140 then
 Move = 1, action (stop the move)
else if Move = 0 then
action (move of the robot to the left)
else go to Step 2.