The CoSpace robot program uses the event-driven
program approach. To launch the AI programming panel, click on the “AI” button
in the “Practice” panel.
In the program,
you need to specify the following 3 properties
v Statement type – to specify the priority of
the statement to be executed
v Condition
v Action
The
statement with the highest priority is placed at the first statement. The compiler
will check the condition of the highest priority statement, if this is true, it
will run the action associate with this statement until the condition is no
longer true. The compiler will then check the next statement. This process will
go on and on…
This way the program works can be described
using this pseudo code:
Fig. 8-1: CSR-Rescue program execution
sequence
The AI
programming panel has 5 sections:
1.
File management
2.
Statement management
3.
Statement type
4.
Condition
5.
Action
Fig. 8-2: AI
development panel
Related Topics