5100e52dab7a780058291b526f0e3787bc75c5ce
[des2015.git] / dsl / runtime / specs / wander.tdsl
1 Acceleration 1000
2 Speed 250
3 Behaviour Wander
4 take control:
5 action:
6 left motor forward
7 right motor forward
8 wait forever
9
10 Behaviour StayInFieldBoth
11 take control: (&& Light on left Light on right)
12 action:
13 left motor backward with speed 1000 acceleration 10000
14 right motor backward with speed 250 acceleration 10000
15 wait 1000 ms
16 Behaviour StayInFieldL
17 take control: Light on left
18 action:
19 right motor backward with speed 250 acceleration 10000
20 left motor forward with speed 250 acceleration 10000
21 wait 750 ms
22 Behaviour StayInFieldR
23 take control: Light on right
24 action:
25 right motor forward with speed 250 acceleration 10000
26 left motor backward with speed 250 acceleration 10000
27 wait 750 ms
28 Behaviour StayInFieldB
29 take control: Distance dangerous at back
30 action:
31 wait 750 ms
32
33 Mission stayinfield using Wander StayInFieldL StayInFieldR StayInFieldB StayInFieldBoth and stops when Color is Cyan