5f48e2b5ea38c26e5f2e0cbbe24b77be85fe114b
[des2015.git] / dsl / specs / spec1.tdsl
1 /* The first part specifies the robot specific information such as
2 * which sensor is plugged in which port. */
3 Name MartNatanael
4 Acceleration 10000
5 Speed 200
6 LeftMotor plugged in A
7 RightMotor plugged in D
8 ColorSensor plugged in S1
9 TouchSensor plugged in S2 and S3
10 UltrasoneSensor plugged in S4
11 /* After the static part you can specify one or more missions
12 * Every mission is a list of behaviours in the order of priority
13 * and a stopping condition.
14 */
15 Mission:
16 /* All behaviours have an action and possibly a take control predicate
17 * When the take control predicate is not specified the behaviour will
18 * always try to take control.
19 */
20 Behaviour
21 Name: DontFallOff
22 TakeControl: ColorLimit: Black
23 Action: Avoid
24 Behaviour
25 Name: AvoidLowObjects
26 TakeControl: TouchStatus: Touch
27 Action: Avoid
28 Behaviour
29 Name: AvoidHighObjects
30 TakeControl: Distance: "0.5" meter
31 Action: Avoid
32 Behaviour
33 Name: Wandering
34 TakeControl:
35 Action: Wander
36 stops when
37 Collected Colors: Red Yellow Blue
38