-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobo4jRpiCamClient.xml
51 lines (50 loc) · 2.36 KB
/
robo4jRpiCamClient.xml
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
<!--
~ Copyright (c) 2014, 2017, Marcus Hirt, Miroslav Wengner
~
~ Robo4J is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Robo4J is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Robo4J. If not, see <http://www.gnu.org/licenses/>.
-->
<robo4j>
<roboUnit id="httpClient">
<class>com.robo4j.socket.http.units.HttpClientUnit</class>
<config name="com.robo4j.root">
<value name="address" type="String">192.168.0.3</value>
<value name="port" type="int">8037</value>
<value name="mode" type="boolean">true</value>
<value name="targetUnits" type="String">{"imageController":"POST"}</value>
</config>
</roboUnit>
<roboUnit id="imageController">
<class>com.robo4j.units.rpi.camera.RaspistillUnit</class>
<config name="com.robo4j.root">
<value name="targetOut" type="String">httpClient</value>
<value name="client" type="String">192.168.0.3</value>
<value name="clientPort" type="String">8037</value>
<value name="clientUri" type="String">/units/imageProcessor</value>
<value name="width" type="String">320</value>
<value name="height" type="String">240</value>
<!--<value name="rotation" type="String">180</value>-->
<!--<value name="exposure" type="String">auto</value>-->
<!--<value name="brightness" type="String">80</value>-->
<!--<value name="contrast" type="String">0</value>-->
<value name="timeout" type="String">1</value>
<value name="timelapse" type="String">100</value>
</config>
</roboUnit>
<roboUnit id="httpServer">
<class>com.robo4j.socket.http.units.HttpServerUnit</class>
<config name="com.robo4j.root">
<value name="port" type="int">8035</value>
</config>
</roboUnit>
</robo4j>