aboutsummaryrefslogtreecommitdiff
path: root/config/Outdoor.xml
blob: a004c4edae2b8c142b35964751d9dcbac9b1e2e9 (plain)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!---All configuration items contain a "Class" tag specifying the python class they represent, and an "Args" tag specifying the args to be passed in.-->
<LightInstallation>
    <InstallationConfiguration>
        <Defaults>
            <PixelMapper>simplemap</PixelMapper>
        </Defaults>
    </InstallationConfiguration>
    <PixelConfiguration>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip1</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,20)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip2</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,24)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip3</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,28)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip4</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,32)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip5</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,36)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.LineLayout</Class>
            <Args>
                <Id>strip6</Id>
                <pixelToPixelSpacing>4</pixelToPixelSpacing>
                <spacing>4</spacing> 
                <numPixels>50</numPixels>
                <originLocation>(10,40)</originLocation>
            </Args>
        </PixelStrip>
    </PixelConfiguration>
    <PixelMapperConfiguration>
        <PixelMapper>
            <Class>pixelmappers.SimpleMapper</Class>
            <Args>
                <Id>simplemap</Id>
            </Args>
        </PixelMapper>
        <PixelMapper>
            <Class>pixelmappers.GaussianMapper</Class>
            <Args>
                <Id>gaussmap</Id>
                <CutoffDist>20</CutoffDist>
                <Width>3</Width>
                <Height>1</Height>
            </Args>
        </PixelMapper>
    </PixelMapperConfiguration>
    <RendererConfiguration>
        <Renderer>
            <Class>renderers.PygameRenderer</Class>
            <Args>
                <Id>pygamerender</Id>
                <displaySize>(1300,50)</displaySize>
            </Args>
        </Renderer>
        <Renderer>
            <Class>renderers.IndoorRenderer</Class>
            <Args>
                <Id>indoorRenderer</Id>
                <PowerSupply>
                    <IP>10.31.255.233</IP>
                    <PortMapping>{'strip1':1, 'strip2':2}</PortMapping>
                </PowerSupply>
                <PowerSupply>
                    <IP>10.32.97.17</IP>
                    <PortMapping>{'strip3':1, 'strip4':2}</PortMapping>
                </PowerSupply>
                <PowerSupply>
                    <IP>10.32.96.211</IP>
                    <PortMapping>{'strip5':1, 'strip6':2}</PortMapping>
                </PowerSupply>
            </Args>
        </Renderer>
    </RendererConfiguration>
    <InputConfiguration>
        <InputElement>
            <Class>inputs.PygameInput</Class>
            <Args><!--Passed as a dictionary-->
                <Id>pygame</Id>
                <RefreshInterval>100</RefreshInterval>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.PygameInput</Class>
            <Args>
                <Id>followmouse</Id>
                <RefreshInterval>50</RefreshInterval>
                <FollowMouse>True</FollowMouse>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.UDPInput</Class>
            <Args>
                <Id>UDP</Id>
                <Port>6038</Port>
                <RefreshInterval>100</RefreshInterval>
            </Args>
        </InputElement>
    </InputConfiguration>
    <BehaviorConfiguration>
        <Behavior>
            <Class>behaviors.EchoBehavior</Class>
            <Args>
                <Id>echo</Id>
                <z-index>0</z-index>
                <RenderToScreen>False</RenderToScreen>
                <Inputs>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ColorChangerBehavior</Class>
            <Args>
                <Id>colorchange</Id>
                <z-index>0</z-index>
                <RenderToScreen>False</RenderToScreen>
            <!--<ColorList>
                <Color>(255,0,0)</Color>
            </ColorList>-->
                <Inputs>
                    <Id>pygame</Id>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.DecayBehavior</Class>
            <Args>
                <Id>decay</Id>
                <DecayType>Exponential</DecayType>
                <Coefficient>.01</Coefficient>
                <z-index>0</z-index>
                <RenderToScreen>False</RenderToScreen>
                <Inputs>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.DebugBehavior</Class>
            <Args>
                <Id>debug</Id>
                <z-index>0</z-index>
                <Inputs>
                    <Id>pygame</Id>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.RecursiveDecay</Class>
            <Args>
                <Id>recursivedecay</Id>
                <InitialResponseCount>70</InitialResponseCount>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>runcolordecay</Id>
                <Inputs>
                    <Id>pygame</Id>
                </Inputs>
                <ChainedBehaviors>
                    <Id>colorchange</Id>
                    <Id>running</Id>
                    <Id>decay</Id>
                </ChainedBehaviors>
                <RecursiveHooks>{'running':'acceleratedie'}</RecursiveHooks>
                <RenderToScreen>True</RenderToScreen>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.ModifyParam</Class>
            <Args>
                <Id>accelerate</Id>
                <ParamType>Sensor</ParamType>
                <ParamName>StepSize</ParamName>
                <ParamOp>{val}*1.05</ParamOp>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>acceleratedie</Id>
                <ChainedBehaviors>
                    <Id>accelerate</Id>
                    <Id>recursivedecay</Id>
                </ChainedBehaviors>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.BehaviorChain</Class>
            <Args>
                <Id>mousechaser</Id>
                <Inputs>
                    <Id>followmouse</Id>
                </Inputs>
                <ChainedBehaviors>
                    <Id>echo</Id>
                    <Id>colorchange</Id>
                    <Id>decay</Id>
                </ChainedBehaviors>
                <RenderToScreen>True</RenderToScreen>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.RunningBehavior</Class>
            <Args>
                <Id>running</Id>
                <Inputs>
                    <Id>pygame</Id>
                </Inputs>
                <StepSize>1</StepSize>
                <RenderToScreen>False</RenderToScreen>
            </Args>
        </Behavior>
    </BehaviorConfiguration>
</LightInstallation>