Presentation is loading. Please wait.

Presentation is loading. Please wait.

SPL Programming – Procedure Pattern

Similar presentations


Presentation on theme: "SPL Programming – Procedure Pattern"— Presentation transcript:

1 SPL Programming – Procedure Pattern
Simple Mission – Maze Explorer Young Joon Kim

2 Topics LRF Procedure Procedure Pattern for the Maze Explorer

3 LRF Procedure

4 LRF Procedure Start with basic maze environment

5 LRF Procedure Add “/Procedure_SensorNotify:” option under the “AddLaserRangeFinderEntity”

6 LRF Procedure Type “proc1”

7 LRF Procedure Add “Procedure”

8 LRF Procedure Add variables to keep distance values

9 LRF Procedure Add “print” command

10 LRF Procedure Save script as “script/Maze6.txt”

11 LRF Procedure Execute result

12 LRF Procedure Execute result

13 Procedure Pattern for the Maze Explorer

14 Procedure Pattern for the Maze Explorer
Start with basic procedure pattern

15 Procedure Pattern for the Maze Explorer
Add Boolean variable to keep the turning state

16 Procedure Pattern for the Maze Explorer
Add “if” liines

17 Procedure Pattern for the Maze Explorer
Add lines to make robot turn right 30 degrees

18 Procedure Pattern for the Maze Explorer
Add “else” lines to turn right

19 Procedure Pattern for the Maze Explorer
Completed script

20 Procedure Pattern for the Maze Explorer
Save script as “script/Maze7.txt”

21 Procedure Pattern for the Maze Explorer
Executed result

22 Procedure Pattern for the Maze Explorer
Executed result

23 Procedure Pattern for the Maze Explorer
Executed result


Download ppt "SPL Programming – Procedure Pattern"

Similar presentations


Ads by Google