1

Archive Project

This commit is contained in:
Kim Wittenburg
2017-07-25 17:04:24 +02:00
parent e715f08a85
commit 8e065f91e4
26 changed files with 506 additions and 33 deletions

67
test.kara Executable file
View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XmlStateMachines version="KaraX 1.0 kara">
<XmlStateMachine actor="Kara">
<XmlState y="67.0" x="151.0" name="Test" finalstate="false">
<XmlSensors>
<XmlSensor name="treeFront"/>
</XmlSensors>
</XmlState>
<XmlState y="165.0" x="175.0" name="r" finalstate="false">
<XmlSensors>
<XmlSensor name="treeLeft"/>
<XmlSensor name="mushroomFront"/>
</XmlSensors>
</XmlState>
<XmlState y="142.0" x="380.0" name="Stop" finalstate="true">
<XmlSensors/>
</XmlState>
<XmlTransition to="Test" from="Test">
<XmlSensorValues>
<XmlSensorValue value="1" name="treeFront"/>
</XmlSensorValues>
<XmlCommands>
<XmlCommand name="move"/>
</XmlCommands>
</XmlTransition>
<XmlTransition to="Test" from="Test">
<XmlSensorValues>
<XmlSensorValue value="0" name="treeFront"/>
</XmlSensorValues>
<XmlCommands>
<XmlCommand name="turnRight"/>
</XmlCommands>
</XmlTransition>
<XmlTransition to="Test" from="Test">
<XmlSensorValues>
<XmlSensorValue value="2" name="treeFront"/>
</XmlSensorValues>
<XmlCommands>
<XmlCommand name="turnRight"/>
</XmlCommands>
</XmlTransition>
<XmlTransition to="r" from="Test">
<XmlSensorValues>
<XmlSensorValue value="0" name="treeFront"/>
</XmlSensorValues>
<XmlCommands/>
</XmlTransition>
<XmlTransition to="Stop" from="Test">
<XmlSensorValues>
<XmlSensorValue value="0" name="treeFront"/>
</XmlSensorValues>
<XmlCommands/>
</XmlTransition>
<XmlTransition to="Stop" from="r">
<XmlSensorValues>
<XmlSensorValue value="0" name="treeLeft"/>
<XmlSensorValue value="0" name="mushroomFront"/>
</XmlSensorValues>
<XmlCommands/>
</XmlTransition>
</XmlStateMachine>
<XmlSensorDefinition name="treeFront" identifier="treeFront" description="Baum vorne?"/>
<XmlSensorDefinition name="treeLeft" identifier="treeLeft" description="Baum links?"/>
<XmlSensorDefinition name="treeRight" identifier="treeRight" description="Baum rechts?"/>
<XmlSensorDefinition name="mushroomFront" identifier="mushroomFront" description="Pilz vorne?"/>
<XmlSensorDefinition name="onLeaf" identifier="onLeaf" description="Kleeblatt unten?"/>
</XmlStateMachines>