Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit c7a5a61

Browse files
author
lbegani
committed
[CSD] : Camera def file for Intel RS RGB camera
For Camera control feature, an xml file with description of parameters that the camera supports need to be hosted over http. The address of the file will be read by the camera streaming daemon from conf file and sent to QGC in a mavlink message. QGC will then download the xml file over http
1 parent a96a8fe commit c7a5a61

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed

recipes-support/aero-http-server/aero-http-server.bb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ inherit systemd
77
SRC_URI += "file://aero-http-server.py \
88
file://aero-http-server.service \
99
file://aero-http-server.socket \
10+
file://camera-def-rs-rgb.xml \
1011
"
1112

1213
FILES_${PN} += "${bindir}/aero-http-server.py \
@@ -21,6 +22,7 @@ do_install() {
2122
install -m 0644 ${WORKDIR}/aero-http-server.service ${D}${systemd_unitdir}/system
2223
install -m 0644 ${WORKDIR}/aero-http-server.socket ${D}${systemd_unitdir}/system
2324
install -m 0755 ${WORKDIR}/aero-http-server.py ${D}${bindir}
25+
install -m 0644 ${WORKDIR}/camera-def-rs-rgb.xml ${D}${localstatedir}/http
2426
}
2527

2628
SYSTEMD_SERVICE_${PN} += "aero-http-server.service"
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<mavlinkcamera>
3+
<definition version="1">
4+
<model>RealSense RGB Camera</model>
5+
<vendor>Intel Corporation</vendor>
6+
</definition>
7+
<parameters>
8+
<!-- control = 0 tells us this should not create an automatic UI control -->
9+
<parameter name="camera-mode" type="uint32" default="1" control="0">
10+
<description>Camera Mode</description>
11+
<options>
12+
<option name="still" value="0">
13+
<exclusions>
14+
<exclude>video-size</exclude>
15+
</exclusions>
16+
</option>
17+
<option name="video" value="1">
18+
</option>
19+
</options>
20+
</parameter>
21+
<parameter name="brightness" type="uint32" default="56" min="0" max="225" step ="1">
22+
<description>Brightness</description>
23+
</parameter>
24+
<parameter name="contrast" type="uint32" default="32" min="16" max="64" step ="1">
25+
<description>Contrast</description>
26+
</parameter>
27+
<parameter name="saturation" type="uint32" default="128" min="0" max="225" step ="1">
28+
<description>Saturation</description>
29+
</parameter>
30+
<parameter name="hue" type="int32" default="0" min="-2200" max="2200" step ="1">
31+
<description>Hue</description>
32+
</parameter>
33+
<parameter name="gamma" type="uint32" default="220" min="100" max="280" step ="1">
34+
<description>Gamma</description>
35+
</parameter>
36+
<parameter name="gain" type="uint32" default="32" min="0" max="256" step ="1">
37+
<description>Gain</description>
38+
</parameter>
39+
<parameter name="sharpness" type="uint32" default="0" min="0" max="7" step ="1">
40+
<description>Sharpness </description>
41+
</parameter>
42+
<parameter name="backlight" type="uint32" default="1" min="0" max="4" step ="1">
43+
<description>Backlight Compensation</description>
44+
</parameter>
45+
<parameter name="power-mode" type="uint32" default="0">
46+
<description>Power Line Frequency </description>
47+
<options>
48+
<option name="Disabled" value="0" />
49+
<option name="50 Hz" value="1" />
50+
<option name="60 Hz" value="2" />
51+
</options>
52+
</parameter>
53+
<parameter name="wb-mode" type="uint32" default="1">
54+
<description>White Balance Mode</description>
55+
<options>
56+
<option name="Manual Mode" value="0" />
57+
<option name="Auto" value="1" >
58+
<exclusions>
59+
<exclude>wb-temp</exclude>
60+
</exclusions>
61+
</option>
62+
</options>
63+
</parameter>
64+
<parameter name="wb-temp" type="uint32" default="6500" min="2000" max="8000" step ="1">
65+
<description>White Balance Temperature </description>
66+
</parameter>
67+
<parameter name="exp-mode" type="uint32" default="3">
68+
<description>Exposure Mode</description>
69+
<options>
70+
<option name="Manual Mode" value="0" />
71+
<option name="Aperture Priority Mode" value="3" >
72+
<exclusions>
73+
<exclude>exp-absolute</exclude>
74+
</exclusions>
75+
</option>
76+
</options>
77+
</parameter>
78+
<parameter name="exp-absolute" type="uint32" default="1" min="1" max="666" step ="1">
79+
<description>Exposure Absolute</description>
80+
</parameter>
81+
<parameter name="video-size" type="uint32" default="0">
82+
<description>Video Resolution</description>
83+
<options>
84+
<option name="1920x1080x30" value="1" />
85+
<option name="1920x1080x15" value="2" />
86+
<option name="1280x720x30" value="3" />
87+
<option name="1280x720x15" value="4" />
88+
<option name="960x540x30" value="5" />
89+
<option name="960x540x15" value="6" />
90+
<option name="848x480x30" value="7" />
91+
<option name="848x480x15" value="8" />
92+
<option name="640x480x60" value="9" />
93+
<option name="640x480x30" value="10" />
94+
<option name="640x480x15" value="11" />
95+
<option name="640x360x30" value="12" />
96+
<option name="640x360x15" value="13" />
97+
<option name="424x240x30" value="14" />
98+
<option name="424x240x15" value="15" />
99+
<option name="320x240x60" value="16" />
100+
<option name="320x240x30" value="17" />
101+
<option name="320x240x15" value="18" />
102+
<option name="320x180x30" value="19" />
103+
<option name="320x180x15" value="20" />
104+
</options>
105+
</parameter>
106+
</parameters>
107+
</mavlinkcamera>

recipes-support/camera-streaming-daemon/files/main.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ blacklist=video0,video1,video3,video4,video5,video6,video7,video8,video9,video10
1010
broadcast_addr=127.0.0.1
1111
port=80550
1212
rtsp_server_addr=192.168.8.1
13+
14+
[uri]
15+
video13=http://192.168.8.1:8000/camera-def-rs-rgb.xml

0 commit comments

Comments
 (0)