Skip to content

Commit 6b295e1

Browse files
Finja Averhausmartingr
authored andcommitted
Add envelopes to the demo model
New example vehicle envelopes have been added to the demo model. The new envelopes are used as an alternative to some of the blocks that were previously in the model. Merged-by: Martin Grzenia <martin.grzenia@iml.fraunhofer.de>
1 parent 07f6e62 commit 6b295e1

File tree

2 files changed

+92
-15
lines changed

2 files changed

+92
-15
lines changed

opentcs-documentation/src/docs/release-notes/changelog.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This change log lists the most relevant changes for past releases in reverse chr
2222
** Reduce the time it takes to persist large plant models into the kernel.
2323
** Avoid re-setting the same processing vehicle of an order sequence, which triggers an entry in the log and one in the sequence's object history.
2424
And if in some way the same processing vehicle is indeed set again, at least don't add an object history entry.
25+
** Add example vehicle envelopes to the demo model.
2526
** Update web API specification and implementation to version 1.12.0:
2627
*** Extend the endpoint `POST /vehicles/NAME/routeComputationQuery` by an optional parameter which specifies the maximum number of routes to compute for one destination point.
2728
*** Add an endpoint `POST /vehicles/{NAME}/commAdapter/message`, which allows sending messages to the communication adapter that is attached to a vehicle.

opentcs-modeleditor/src/dist/data/Demo-01.xml

Lines changed: 91 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,27 @@
8585
</point>
8686
<point name="Point-0016" positionX="-2000" positionY="-11000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
8787
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
88+
<vehicleEnvelope key="envelope-a">
89+
<vertex x="-1000" y="-12000"/>
90+
<vertex x="-1000" y="-10000"/>
91+
<vertex x="-3000" y="-10000"/>
92+
<vertex x="-3000" y="-12000"/>
93+
<vertex x="-1000" y="-12000"/>
94+
</vehicleEnvelope>
8895
<outgoingPath name="Point-0016 --- Point-0017"/>
8996
<outgoingPath name="Point-0016 --- Point-0022"/>
9097
<outgoingPath name="Point-0016 --- Point-0046"/>
9198
<pointLayout positionX="-2000" positionY="-11000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
9299
</point>
93100
<point name="Point-0017" positionX="-12000" positionY="-15000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
94101
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
102+
<vehicleEnvelope key="envelope-a">
103+
<vertex x="-11000" y="-16000"/>
104+
<vertex x="-11000" y="-14000"/>
105+
<vertex x="-13000" y="-14000"/>
106+
<vertex x="-13000" y="-16000"/>
107+
<vertex x="-11000" y="-16000"/>
108+
</vehicleEnvelope>
95109
<outgoingPath name="Point-0017 --- Point-0020"/>
96110
<pointLayout positionX="-12000" positionY="-15000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
97111
</point>
@@ -102,6 +116,13 @@
102116
</point>
103117
<point name="Point-0019" positionX="-2000" positionY="-15000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
104118
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
119+
<vehicleEnvelope key="envelope-a">
120+
<vertex x="-1000" y="-14000"/>
121+
<vertex x="-3000" y="-14000"/>
122+
<vertex x="-3000" y="-16000"/>
123+
<vertex x="-1000" y="-16000"/>
124+
<vertex x="-1000" y="-14000"/>
125+
</vehicleEnvelope>
105126
<outgoingPath name="Point-0019 --- Point-0017"/>
106127
<outgoingPath name="Point-0019 --- Point-0022"/>
107128
<pointLayout positionX="-2000" positionY="-15000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
@@ -118,6 +139,13 @@
118139
</point>
119140
<point name="Point-0022" positionX="-12000" positionY="-11000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
120141
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
142+
<vehicleEnvelope key="envelope-a">
143+
<vertex x="-11000" y="-10000"/>
144+
<vertex x="-13000" y="-10000"/>
145+
<vertex x="-13000" y="-12000"/>
146+
<vertex x="-11000" y="-12000"/>
147+
<vertex x="-11000" y="-10000"/>
148+
</vehicleEnvelope>
121149
<outgoingPath name="Point-0022 --- Point-0056"/>
122150
<pointLayout positionX="-12000" positionY="-11000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
123151
</point>
@@ -197,6 +225,13 @@
197225
</point>
198226
<point name="Point-0038" positionX="-2000" positionY="7000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
199227
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
228+
<vehicleEnvelope key="envelope-a">
229+
<vertex x="-1000" y="6000"/>
230+
<vertex x="-1000" y="8000"/>
231+
<vertex x="-3000" y="8000"/>
232+
<vertex x="-3000" y="6000"/>
233+
<vertex x="-1000" y="6000"/>
234+
</vehicleEnvelope>
200235
<outgoingPath name="Point-0038 --- Point-0037"/>
201236
<pointLayout positionX="-2000" positionY="7000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
202237
</point>
@@ -227,6 +262,13 @@
227262
</point>
228263
<point name="Point-0044" positionX="7000" positionY="5000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
229264
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
265+
<vehicleEnvelope key="envelope-a">
266+
<vertex x="8000" y="4000"/>
267+
<vertex x="8000" y="6000"/>
268+
<vertex x="6000" y="6000"/>
269+
<vertex x="6000" y="4000"/>
270+
<vertex x="8000" y="4000"/>
271+
</vehicleEnvelope>
230272
<outgoingPath name="Point-0044 --- Point-0047"/>
231273
<pointLayout positionX="7000" positionY="5000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
232274
</point>
@@ -253,6 +295,13 @@
253295
</point>
254296
<point name="Point-0049" positionX="2000" positionY="3000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
255297
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
298+
<vehicleEnvelope key="envelope-a">
299+
<vertex x="1000" y="4000"/>
300+
<vertex x="3000" y="4000"/>
301+
<vertex x="3000" y="2000"/>
302+
<vertex x="1000" y="2000"/>
303+
<vertex x="1000" y="4000"/>
304+
</vehicleEnvelope>
256305
<outgoingPath name="Point-0049 --- Point-0038"/>
257306
<pointLayout positionX="2000" positionY="3000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
258307
</point>
@@ -268,6 +317,13 @@
268317
</point>
269318
<point name="Point-0052" positionX="-2000" positionY="5000" positionZ="0" vehicleOrientationAngle="NaN" type="HALT_POSITION">
270319
<maxVehicleBoundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
320+
<vehicleEnvelope key="envelope-a">
321+
<vertex x="-1000" y="4000"/>
322+
<vertex x="-1000" y="6000"/>
323+
<vertex x="-3000" y="6000"/>
324+
<vertex x="-3000" y="4000"/>
325+
<vertex x="-1000" y="4000"/>
326+
</vehicleEnvelope>
271327
<outgoingPath name="Point-0052 --- Point-0044"/>
272328
<pointLayout positionX="-2000" positionY="5000" labelOffsetX="-10" labelOffsetY="-20" layerId="0"/>
273329
</point>
@@ -422,6 +478,13 @@
422478
</pathLayout>
423479
</path>
424480
<path name="Point-0016 --- Point-0017" sourcePoint="Point-0016" destinationPoint="Point-0017" length="11166" maxVelocity="1000" maxReverseVelocity="0" locked="false">
481+
<vehicleEnvelope key="envelope-a">
482+
<vertex x="-2000" y="-10500"/>
483+
<vertex x="-12000" y="-14500"/>
484+
<vertex x="-12000" y="-15500"/>
485+
<vertex x="-2000" y="-11500"/>
486+
<vertex x="-2000" y="-10500"/>
487+
</vehicleEnvelope>
425488
<pathLayout connectionType="BEZIER" layerId="0">
426489
<controlPoint x="-126" y="233"/>
427490
<controlPoint x="-175" y="288"/>
@@ -449,6 +512,13 @@
449512
<pathLayout connectionType="DIRECT" layerId="0"/>
450513
</path>
451514
<path name="Point-0019 --- Point-0022" sourcePoint="Point-0019" destinationPoint="Point-0022" length="11062" maxVelocity="1000" maxReverseVelocity="0" locked="false">
515+
<vehicleEnvelope key="envelope-a">
516+
<vertex x="-2000" y="-14500"/>
517+
<vertex x="-12000" y="-10500"/>
518+
<vertex x="-12000" y="-11500"/>
519+
<vertex x="-2000" y="-15500"/>
520+
<vertex x="-2000" y="-14500"/>
521+
</vehicleEnvelope>
452522
<pathLayout connectionType="BEZIER" layerId="0">
453523
<controlPoint x="-113" y="288"/>
454524
<controlPoint x="-169" y="233"/>
@@ -596,6 +666,15 @@
596666
</pathLayout>
597667
</path>
598668
<path name="Point-0049 --- Point-0038" sourcePoint="Point-0049" destinationPoint="Point-0038" length="6882" maxVelocity="1000" maxReverseVelocity="0" locked="false">
669+
<vehicleEnvelope key="envelope-a">
670+
<vertex x="2500" y="3000"/>
671+
<vertex x="1700" y="6800"/>
672+
<vertex x="-2000" y="7500"/>
673+
<vertex x="-2000" y="6500"/>
674+
<vertex x="700" y="5800"/>
675+
<vertex x="1500" y="3000"/>
676+
<vertex x="2500" y="3000"/>
677+
</vehicleEnvelope>
599678
<pathLayout connectionType="BEZIER" layerId="0">
600679
<controlPoint x="30" y="-127"/>
601680
<controlPoint x="30" y="-127"/>
@@ -608,6 +687,13 @@
608687
<pathLayout connectionType="DIRECT" layerId="0"/>
609688
</path>
610689
<path name="Point-0052 --- Point-0044" sourcePoint="Point-0052" destinationPoint="Point-0044" length="8443" maxVelocity="1000" maxReverseVelocity="0" locked="false">
690+
<vehicleEnvelope key="envelope-a">
691+
<vertex x="-2000" y="4500"/>
692+
<vertex x="7000" y="4500"/>
693+
<vertex x="7000" y="5500"/>
694+
<vertex x="-2000" y="5500"/>
695+
<vertex x="-2000" y="4500"/>
696+
</vehicleEnvelope>
611697
<pathLayout connectionType="DIRECT" layerId="0"/>
612698
</path>
613699
<path name="Point-0053 --- Point-0045" sourcePoint="Point-0053" destinationPoint="Point-0045" length="6922" maxVelocity="1000" maxReverseVelocity="0" locked="false">
@@ -648,25 +734,25 @@
648734
<path name="Point-0061 --- Point-0021" sourcePoint="Point-0061" destinationPoint="Point-0021" length="8000" maxVelocity="1000" maxReverseVelocity="0" locked="false">
649735
<pathLayout connectionType="DIRECT" layerId="0"/>
650736
</path>
651-
<vehicle name="Vehicle-01" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000">
737+
<vehicle name="Vehicle-01" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000" envelopeKey="envelope-a">
652738
<boundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
653739
<property name="loopback:loadOperation" value="Load cargo"/>
654740
<property name="loopback:unloadOperation" value="Unload cargo"/>
655741
<vehicleLayout color="#FF0000"/>
656742
</vehicle>
657-
<vehicle name="Vehicle-02" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000">
743+
<vehicle name="Vehicle-02" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000" envelopeKey="envelope-a">
658744
<boundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
659745
<property name="loopback:loadOperation" value="Load cargo"/>
660746
<property name="loopback:unloadOperation" value="Unload cargo"/>
661747
<vehicleLayout color="#33FF00"/>
662748
</vehicle>
663-
<vehicle name="Vehicle-03" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000">
749+
<vehicle name="Vehicle-03" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000" envelopeKey="envelope-a">
664750
<boundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
665751
<property name="loopback:loadOperation" value="Load cargo"/>
666752
<property name="loopback:unloadOperation" value="Unload cargo"/>
667753
<vehicleLayout color="#00FFFF"/>
668754
</vehicle>
669-
<vehicle name="Vehicle-04" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000">
755+
<vehicle name="Vehicle-04" energyLevelCritical="30" energyLevelGood="90" energyLevelFullyRecharged="95" energyLevelSufficientlyRecharged="45" maxVelocity="1000" maxReverseVelocity="1000" envelopeKey="envelope-a">
670756
<boundingBox length="1000" width="1000" height="1000" referenceOffsetX="0" referenceOffsetY="0"/>
671757
<property name="loopback:loadOperation" value="Load cargo"/>
672758
<property name="loopback:unloadOperation" value="Unload cargo"/>
@@ -781,21 +867,11 @@
781867
<property name="tcs:defaultLocationSymbol" value="DEFAULT"/>
782868
<locationLayout positionX="15000" positionY="-3000" labelOffsetX="-10" labelOffsetY="-20" locationRepresentation="DEFAULT" layerId="0"/>
783869
</location>
784-
<block name="Block-0001" type="SINGLE_VEHICLE_ONLY">
785-
<member name="Point-0016 --- Point-0017"/>
786-
<member name="Point-0019 --- Point-0022"/>
787-
<blockLayout color="#FF0000"/>
788-
</block>
789870
<block name="Block-0002" type="SINGLE_VEHICLE_ONLY">
790871
<member name="Point-0037 --- Point-0028"/>
791872
<member name="Point-0039 --- Point-0040"/>
792873
<blockLayout color="#0000FF"/>
793874
</block>
794-
<block name="Block-0003" type="SINGLE_VEHICLE_ONLY">
795-
<member name="Point-0049 --- Point-0038"/>
796-
<member name="Point-0052 --- Point-0044"/>
797-
<blockLayout color="#00CC00"/>
798-
</block>
799875
<block name="Block-0004" type="SINGLE_VEHICLE_ONLY">
800876
<member name="Point-0015 --- Point-0050"/>
801877
<member name="Point-0045 --- Point-0016"/>
@@ -806,5 +882,5 @@
806882
<layer id="0" ordinal="0" visible="true" name="Default layer" groupId="0"/>
807883
<layerGroup id="0" name="Default layer group" visible="true"/>
808884
</visualLayout>
809-
<property name="tcs:modelFileLastModified" value="2024-09-12T12:01:37Z"/>
885+
<property name="tcs:modelFileLastModified" value="2025-08-05T09:22:30Z"/>
810886
</model>

0 commit comments

Comments
 (0)