SPL Programming – Procedure Pattern Simple Mission – Maze Explorer Young Joon Kim http://www.helloapps.com
Topics LRF Procedure Procedure Pattern for the Maze Explorer
LRF Procedure
LRF Procedure Start with basic maze environment
LRF Procedure Add “/Procedure_SensorNotify:” option under the “AddLaserRangeFinderEntity”
LRF Procedure Type “proc1”
LRF Procedure Add “Procedure”
LRF Procedure Add variables to keep distance values
LRF Procedure Add “print” command
LRF Procedure Save script as “script/Maze6.txt”
LRF Procedure Execute result
LRF Procedure Execute result
Procedure Pattern for the Maze Explorer
Procedure Pattern for the Maze Explorer Start with basic procedure pattern
Procedure Pattern for the Maze Explorer Add Boolean variable to keep the turning state
Procedure Pattern for the Maze Explorer Add “if” liines
Procedure Pattern for the Maze Explorer Add lines to make robot turn right 30 degrees
Procedure Pattern for the Maze Explorer Add “else” lines to turn right
Procedure Pattern for the Maze Explorer Completed script
Procedure Pattern for the Maze Explorer Save script as “script/Maze7.txt”
Procedure Pattern for the Maze Explorer Executed result
Procedure Pattern for the Maze Explorer Executed result
Procedure Pattern for the Maze Explorer Executed result