ReadSensorInterval.xml

Page auto-generated from XML file.

Failure

The generated TethysL source could not be parsed, likely due to source XML not being well-formed.

Below is the compile error at the TethysL level, as well as the source XML.

The TethysL file name shown below does not necessarily indicate the file exists, but hints about the actual corresponding .xml file.

Syntax error:
   --> lrauv-application/Missions/Demo/ReadSensorInterval.xml:54:17
    | 
 50 |     run in sequence
 51 |     timeout duration=P5M
 52 |     readData  {
 53 | 
 54 |       interval ((Universal:depth  2) meter)
    |                 ^
 55 | 
 56 |       Universal:sea_water_temperature
 57 | 
 58 |     }
    | 
Unexpected: `(`
One of the following is possible:
  interval
  period
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
mission ReadSensorInterval {
  timeout duration=P1H
  insert RegressionTests/InsertHighPriority.xml

  insert RegressionTests/InsertSurfaceOps.xml

  behavior Guidance:DepthEnvelope  {

    run in parallel


    set Guidance:DepthEnvelope.minDepth = 5 meter

    set Guidance:DepthEnvelope.maxDepth = 30 meter

  }


  behavior Guidance:YoYo  {

    run in parallel


  }


  behavior Guidance:SetSpeed  {

    run in parallel


    set Guidance:SetSpeed.speed = 1 meter_per_second

  }


  aggregate SampleEvery10Seconds {
    run in sequence
    timeout duration=P5M
    readData  {

      period ( 10 second )

      Universal:sea_water_temperature

    }
  }

  aggregate SampleEvery2Meters {
    run in sequence
    timeout duration=P5M
    readData  {

      interval ((Universal:depth  2) meter)

      Universal:sea_water_temperature

    }
  }

  aggregate SampleEveryXSeconds {
    arguments {
      X = 20 second


    }

    run in sequence
    timeout duration=P5M
    readData  {

      period ( X )

      Universal:sea_water_temperature

    }
  }

  aggregate SampleEveryXMeters {
    arguments {
      X = 5 meter


    }

    run in sequence
    timeout duration=P5M
    readData  {

      interval (Universal:depth  X)

      Universal:sea_water_temperature

    }
  }

  behavior Guidance:Waypoint id="Waypoint"  {

    run in progression


    timeout duration=P21M

    set Guidance:Waypoint.latitude = 36.75 degree

    set Guidance:Waypoint.longitude = -121.88 degree

  }


}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<Mission xmlns="Tethys"
       xmlns:Control="Tethys/Control"
       xmlns:Guidance="Tethys/Guidance" 
       xmlns:Units="Tethys/Units"
       xmlns:Universal="Tethys/Universal"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="Tethys http://okeanids.mbari.org/tethys/Xml/Tethys.xsd
                           Tethys/Control http://okeanids.mbari.org/tethys/Xml/Control.xsd
                           Tethys/Guidance http://okeanids.mbari.org/tethys/Xml/Guidance.xsd
                           Tethys/Units http://okeanids.mbari.org/tethys/Xml/Units.xsd
                           Tethys/Universal http://okeanids.mbari.org/tethys/Xml/Universal.xsd"
       Id="ReadSensorInterval">

    <Timeout Duration="P1H"/>

    <Insert Filename="RegressionTests/InsertHighPriority.xml"/>

    <Insert Filename="RegressionTests/InsertSurfaceOps.xml"/>

    <Guidance:DepthEnvelope>
        <Parallel/>
        <Setting><Guidance:DepthEnvelope.minDepth/><Units:meter/><Value>5</Value></Setting>
        <Setting><Guidance:DepthEnvelope.maxDepth/><Units:meter/><Value>30</Value></Setting>
    </Guidance:DepthEnvelope>

    <Guidance:YoYo>
        <Parallel/>
    </Guidance:YoYo>

    <Guidance:SetSpeed>
        <Parallel/>
        <Setting><Guidance:SetSpeed.speed/><Units:meter_per_second/><Value>1</Value></Setting>
    </Guidance:SetSpeed>

    <Aggregate Id="SampleEvery10Seconds">

        <Sequence/>

        <Timeout Duration="P5M"/>

        <ReadData>
            <Period><Units:second/><Value>10</Value></Period>
            <Universal:sea_water_temperature/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleEvery2Meters">

        <Sequence/>

        <Timeout Duration="P5M"/>

        <ReadData>
            <Interval><Universal:depth/><Units:meter/><Value>2</Value></Interval>
            <Universal:sea_water_temperature/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleEveryXSeconds">

        <DefineArg Name="X"><Units:second/><Value>20</Value></DefineArg>

        <Sequence/>

        <Timeout Duration="P5M"/>

        <ReadData>
            <Period><Arg Name="X"/></Period>
            <Universal:sea_water_temperature/>
        </ReadData>

    </Aggregate>

    <Aggregate Id="SampleEveryXMeters">

        <DefineArg Name="X"><Units:meter/><Value>5</Value></DefineArg>

        <Sequence/>

        <Timeout Duration="P5M"/>

        <ReadData>
            <Interval><Universal:depth/><Arg Name="X"/></Interval>
            <Universal:sea_water_temperature/>
        </ReadData>

    </Aggregate>

    <Guidance:Waypoint Id="Waypoint">
        <Progression/>
        <Timeout Duration="P21M"/>
        <Setting><Guidance:Waypoint.latitude/><Units:degree/><Value>36.75</Value></Setting>
        <Setting><Guidance:Waypoint.longitude/><Units:degree/><Value>-121.88</Value></Setting>
    </Guidance:Waypoint>

</Mission>