Let’s explore how to use the advanced
condition in the program. Re-program the exercise 9.6 – searching for RED
objects using advanced condition function.
Procedure:
1.
Open the project “SerachingRED”
2.
Delete the two statements – “FoundRED_L” and “FoundRED_R”
3.
Add a new statement – “FoundRED”
4.
Add the advanced condition which combines the two basic conditions set
in “FoundRED_L” and “FoundRED_R”.
5.
Keep the action the same as the “FoundRED_L” or “FoundRED_R”,
6.
Save the project as “SearchingRED_AC”.
7.
Build the project.
8.
Load the “SearchingRED_AC.dll” to the RED robot and monitor its
performance.