Commit 1db473cc authored by Ulrich Kemloh's avatar Ulrich Kemloh

Validation files for geometry, ini files and routing

parent 992a3246
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<geometry version="0.5" caption="Projectname" unit="m">
<geometry version="0.5" caption="Projectname" unit="m"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="geometry.xsd">
<rooms>
<room id="0" caption="1">
<subroom id="0" closed="0" class="subroom">
......@@ -30,7 +32,7 @@
<vertex px="0.446613" py="136.784409" />
</polygon>
<!--
<!--
x1 y1 x2 y2
......@@ -39,7 +41,7 @@ x1 y1 x2 y2
23.422 5.000 23.572 7.800
58.919 0.000 58.999 1.400
58.919 6.382 58.999 7.782
60.527 1.391 60.622 6.391
60.527 1.391 60.622 6.391
-->
......@@ -224,7 +226,7 @@ x1 y1 x2 y2
</crossing>
</crossings>
</room>
<room id="2" caption="3" zpos="0.000000">
<room id="2" caption="3">
<subroom id="0" closed="0" class="subroom">
<polygon caption="wall">
<vertex px="-17.058630" py="133.474518" />
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="geometry">
<xs:complexType>
<xs:sequence>
<xs:element name="rooms" maxOccurs="1" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="room" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="subroom" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="polygon" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="vertex" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="required"/>
<xs:attribute type="xs:float" name="py" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="caption" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="obstacle" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="polygon">
<xs:complexType>
<xs:sequence>
<xs:element name="vertex" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="required"/>
<xs:attribute type="xs:float" name="py" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="caption" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:string" name="caption" use="optional"/>
<xs:attribute type="xs:float" name="height" use="optional"/>
<xs:attribute type="xs:byte" name="closed" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="up" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="optional"/>
<xs:attribute type="xs:byte" name="py" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="down" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="optional"/>
<xs:attribute type="xs:byte" name="py" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:int" name="closed" use="optional"/>
<xs:attribute type="xs:float" name="A_x" use="optional"/>
<xs:attribute type="xs:float" name="B_y" use="optional"/>
<xs:attribute type="xs:float" name="C_z" use="optional"/>
<xs:attribute name="class" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="stair" />
<xs:enumeration value="subroom" />
<xs:enumeration value="floor" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="crossings" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="crossing" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="vertex" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="required"/>
<xs:attribute type="xs:float" name="py" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:int" name="subroom1_id" use="required"/>
<xs:attribute type="xs:int" name="subroom2_id" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:string" name="caption" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="transitions">
<xs:complexType>
<xs:sequence>
<xs:element name="transition" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="vertex" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:float" name="px" use="required"/>
<xs:attribute type="xs:float" name="py" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:string" name="caption" use="required"/>
<xs:attribute type="xs:string" name="type" use="optional"/>
<xs:attribute type="xs:int" name="room1_id" use="required"/>
<xs:attribute type="xs:int" name="subroom1_id" use="required"/>
<xs:attribute type="xs:int" name="room2_id" use="required"/>
<xs:attribute type="xs:int" name="subroom2_id" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:float" name="version" use="required"/>
<xs:attribute type="xs:string" name="caption" use="required"/>
<xs:attribute type="xs:string" name="unit" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
\ No newline at end of file
This diff is collapsed.
......@@ -6,24 +6,20 @@
<seed>12542</seed>
<!-- maximal simulation time -->
<numCPU>4</numCPU>
<max_sim_time unit="sec">456</max_sim_time>
<max_sim_time >456</max_sim_time>
<!-- geometry file -->
<geometry>bateau_obst.xml</geometry>
<!-- trajectories file and format -->
<trajectories format="xml-plain" fps="8">
<file location="trajectories.xml" />
<!-- <socket hostname="127.0.0.1" port="8989"/> -->
<file location="trajectories.xml" />
<socket hostname="127.0.0.1" port="8989"/>
</trajectories>
<!-- where to store the logs -->
<!--<logfile>log.txt</logfile> -->
<logfile>log.txt</logfile>
<!-- traffic information: e.g closed doors or smoked rooms -->
<traffic_constraints>
<!-- room states are: good or smoked -->
<rooms>
<room room_id="0" state="good" />
</rooms>
<!-- doors states are: close or open -->
<doors>
<door trans_id="3" caption="" state="open" />
......@@ -33,7 +29,7 @@
</traffic_constraints>
<routing>
<goals_>
<goals>
<goal id="0" final="false" caption="goal 1">
<polygon>
<vertex px="-5.0" py="-5.0" />
......@@ -61,17 +57,17 @@
<vertex px="20.0" py="17.0" />
</polygon>
</goal>
</goals_>
</goals>
</routing>
<!--persons information and distribution -->
<agents operational_model_id="2">
<agents_distribution>
<group1 group_id="5" room_id="0" subroom_id="0" number="0" goal_id="" router_id="1" route_id="" motivation=""/>
<group1 group_id="0" room_id="0" subroom_id="0" number="0" goal_id="" router_id="1" route_id="" />
<group1 group_id="1" room_id="0" subroom_id="1" number="0" goal_id="" router_id="2" route_id="" patience="5"/>
<group group_id="2" agent_parameter_id="1" room_id="0" subroom_id="1" number="50" goal_id="-1" router_id="2" patience="44" x_min="6.52" x_max="41" y_min="" y_max=""/>
<group1 group_id="3" room_id="1" subroom_id="1" number="0" goal_id="-1" router_id="2" patience="20"/>
<!-- <group1 group_id="5" room_id="0" subroom_id="0" number="0" goal_id="" router_id="1" route_id="" /> -->
<!-- <group1 group_id="0" room_id="0" subroom_id="0" number="0" goal_id="" router_id="1" route_id="" /> -->
<!-- <group1 group_id="3" room_id="1" subroom_id="1" number="0" goal_id="-1" router_id="2" patience="20"/> -->
<group group_id="1" agent_parameter_id="2" room_id="0" subroom_id="1" number="1" start_x="23.5" start_y="232.5" goal_id="-1" router_id="2" patience="5"/>
<group group_id="2" agent_parameter_id="1" room_id="0" subroom_id="1" number="50" goal_id="-1" router_id="2" patience="44" x_min="6.52" x_max="41"/>
</agents_distribution>
</agents>
......@@ -147,5 +143,4 @@
</router>
</route_choice_models>
</JuPedSim>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:element name="routing">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="Hlines">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Hline">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="vertex">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="px" type="xs:float" use="required"/>
<xs:attribute name="py" type="xs:float" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:int" use="required"/>
<xs:attribute name="room_id" type="xs:int" use="required"/>
<xs:attribute name="subroom_id" type="xs:int" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="version" type="xs:float" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8"?>
<routing version="0.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.medilabo.de/routing.xsd" >
<Hlines>
<Hline id="7" room_id="0" subroom_id="1">
<vertex px="6.52" py="133.98" />
<vertex px="6.52" py="131.78" />
</Hline>
<Hline id="8" room_id="0" subroom_id="1">
<vertex px="6.372" py="133.98" />
<vertex px="4.912" py="134.272" />
</Hline>
<Hline id="9" room_id="0" subroom_id="1">
<vertex px="6.372" py="131.78" />
<vertex px="4.912" py="131.47" />
</Hline>
<routing version="0.5">
<Hlines>
<Hline id="7" room_id="0" subroom_id="1">
<vertex px="6.52" py="133.98" />
<vertex px="6.52" py="131.78" />
</Hline>
<Hline id="8" room_id="0" subroom_id="1">
<vertex px="6.372" py="133.98" />
<vertex px="4.912" py="134.272" />
</Hline>
<Hline id="9" room_id="0" subroom_id="1">
<vertex px="6.372" py="131.78" />
<vertex px="4.912" py="131.47" />
</Hline>
<Hline id="10" room_id="0" subroom_id="1">
<vertex px="4.762" py="134.27" />
<vertex px="4.762" py="136.78" />
</Hline>
<Hline id="11" room_id="0" subroom_id="1">
<vertex px="4.762" py="131.47" />
<vertex px="4.762" py="128.98" />
</Hline>
<Hline id="10" room_id="0" subroom_id="1">
<vertex px="4.762" py="134.27" />
<vertex px="4.762" py="136.78" />
</Hline>
<Hline id="11" room_id="0" subroom_id="1">
<vertex px="4.762" py="131.47" />
<vertex px="4.762" py="128.98" />
</Hline>
<Hline id="12" room_id="0" subroom_id="1">
<vertex px="41.869" py="135.36" />
<vertex px="41.869" py="130.38" />
</Hline>
<Hline id="13" room_id="0" subroom_id="1">
<vertex px="43.47" py="135.371" />
<vertex px="43.47" py="136.78" />
</Hline>
<Hline id="14" room_id="0" subroom_id="1">
<vertex px="43.47" py="130.37" />
<vertex px="43.47" py="128.98" />
</Hline>
</Hlines>
<Hline id="12" room_id="0" subroom_id="1">
<vertex px="41.869" py="135.36" />
<vertex px="41.869" py="130.38" />
</Hline>
<Hline id="13" room_id="0" subroom_id="1">
<vertex px="43.47" py="135.371" />
<vertex px="43.47" py="136.78" />
</Hline>
<Hline id="14" room_id="0" subroom_id="1">
<vertex px="43.47" py="130.37" />
<vertex px="43.47" py="128.98" />
</Hline>
</Hlines>
</routing>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<geometry version="0.5" caption="Projectname" gridSizeX="20.000000" gridSizeY="20.000000" unit="m">
<geometry version="0.5" caption="Projectname" unit="m"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://medilabo.de/geometry.xsd">
<rooms>
<room id="0" caption="subway">
<subroom id="0" closed="0" class="subroom" A_x="0" B_y="0" C_z="0">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment