Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ac8a86ef
Commit
ac8a86ef
authored
Dec 10, 2010
by
lm
Browse files
Merge branch 'dev' of pixhawk.ethz.ch:qgroundcontrol into dev
parents
291fc986
d39079b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
data/kinect.cal
View file @
ac8a86ef
[rgb]
principal_point\x=31
3.67245
principal_point\y=264.
06175
focal_length\x=527.
44654
focal_length\y=527.
40652
distortion\k1=0.20
780
distortion\k2=-0.343
20
distortion\k3=0.00
139
distortion\k4=0.000
61
distortion\k5=0.00000
principal_point\x=31
4.70228964
principal_point\y=264.
30478827
focal_length\x=527.
91246131
focal_length\y=527.
91246131
distortion\k1=0.20
496745
distortion\k2=-0.3
63412
43
distortion\k3=0.00
000000
distortion\k4=0.000
00000
distortion\k5=0.00000
000
[depth]
principal_point\x=31
3.23400
principal_point\y=24
6.1
3447
focal_length\x=5
87.62150
focal_length\y=5
87.51184
distortion\k1=0.0
1063
distortion\k2=
-
0.0
4479
distortion\k3=
-
0.000
73
distortion\k4=0.000
81
distortion\k5=0.00000
principal_point\x=31
1.88621344
principal_point\y=24
7.6
3447
078
focal_length\x=5
93.89813561
focal_length\y=5
93.89813561
distortion\k1=0.0
0000000
distortion\k2=0.0
0000000
distortion\k3=0.000
00000
distortion\k4=0.000
00000
distortion\k5=0.00000
000
[transform]
R11=0.99994
R12=0.00098102
R13=0.010900
R21=-0.00097894
R22=1.0
R23=-0.00019534
R33=-0.010900
R32=0.00018466
R33=0.99994
Tx=-0.02581986
Ty=-0.0130948
Tz=-0.0047681
R11=0.999982
R12=0.000556
R13=0.005927
R21=-0.000563
R22=0.999999
R23=0.001235
R33=-0.005926
R32=-0.001239
R33=0.999982
Tx=-0.024287
Ty=0.001018
Tz=-0.015195
baseline=0.06061
disparity_offset=1092.3403
src/input/Freenect.cc
View file @
ac8a86ef
...
...
@@ -208,8 +208,9 @@ Freenect::get3DPointCloudData(void)
{
if
(
data
[
i
]
>
0
&&
data
[
i
]
<=
2048
)
{
// see www.ros.org/wiki/kinect_node for details
double
range
=
1.0
f
/
(
-
0.00307
f
*
static_cast
<
float
>
(
data
[
i
])
+
3.33
f
);
double
range
=
baseline
*
depthCameraParameters
.
fx
/
(
1.0
/
8.0
*
(
disparityOffset
-
static_cast
<
double
>
(
data
[
i
])));
if
(
range
>
0.0
f
)
{
...
...
@@ -341,6 +342,9 @@ Freenect::readConfigFile(void)
settings
.
value
(
"transform/Tz"
).
toDouble
(),
0.0
,
0.0
,
0.0
,
1.0
);
transformMatrix
=
transformMatrix
.
transposed
();
baseline
=
settings
.
value
(
"transform/baseline"
).
toDouble
();
disparityOffset
=
settings
.
value
(
"transform/disparity_offset"
).
toDouble
();
}
void
...
...
src/input/Freenect.h
View file @
ac8a86ef
...
...
@@ -119,6 +119,8 @@ private:
IntrinsicCameraParameters
depthCameraParameters
;
QMatrix4x4
transformMatrix
;
double
baseline
;
double
disparityOffset
;
// tilt angle of Kinect camera
int
tiltAngle
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment