Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ac8a86ef
Commit
ac8a86ef
authored
Dec 10, 2010
by
lm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of pixhawk.ethz.ch:qgroundcontrol into dev
parents
291fc986
d39079b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
32 deletions
+40
-32
kinect.cal
data/kinect.cal
+32
-30
Freenect.cc
src/input/Freenect.cc
+6
-2
Freenect.h
src/input/Freenect.h
+2
-0
No files found.
data/kinect.cal
View file @
ac8a86ef
[rgb]
[rgb]
principal_point\x=31
3.67245
principal_point\x=31
4.70228964
principal_point\y=264.
06175
principal_point\y=264.
30478827
focal_length\x=527.
44654
focal_length\x=527.
91246131
focal_length\y=527.
40652
focal_length\y=527.
91246131
distortion\k1=0.20
780
distortion\k1=0.20
496745
distortion\k2=-0.3
4320
distortion\k2=-0.3
6341243
distortion\k3=0.00
139
distortion\k3=0.00
000000
distortion\k4=0.000
61
distortion\k4=0.000
00000
distortion\k5=0.00000
distortion\k5=0.00000
000
[depth]
[depth]
principal_point\x=31
3.23400
principal_point\x=31
1.88621344
principal_point\y=24
6.13447
principal_point\y=24
7.63447078
focal_length\x=5
87.62150
focal_length\x=5
93.89813561
focal_length\y=5
87.51184
focal_length\y=5
93.89813561
distortion\k1=0.0
1063
distortion\k1=0.0
0000000
distortion\k2=
-0.04479
distortion\k2=
0.00000000
distortion\k3=
-0.00073
distortion\k3=
0.00000000
distortion\k4=0.000
81
distortion\k4=0.000
00000
distortion\k5=0.00000
distortion\k5=0.00000
000
[transform]
[transform]
R11=0.99994
R11=0.999982
R12=0.00098102
R12=0.000556
R13=0.010900
R13=0.005927
R21=-0.00097894
R21=-0.000563
R22=1.0
R22=0.999999
R23=-0.00019534
R23=0.001235
R33=-0.010900
R33=-0.005926
R32=0.00018466
R32=-0.001239
R33=0.99994
R33=0.999982
Tx=-0.02581986
Tx=-0.024287
Ty=-0.0130948
Ty=0.001018
Tz=-0.0047681
Tz=-0.015195
baseline=0.06061
disparity_offset=1092.3403
src/input/Freenect.cc
View file @
ac8a86ef
...
@@ -208,8 +208,9 @@ Freenect::get3DPointCloudData(void)
...
@@ -208,8 +208,9 @@ Freenect::get3DPointCloudData(void)
{
{
if
(
data
[
i
]
>
0
&&
data
[
i
]
<=
2048
)
if
(
data
[
i
]
>
0
&&
data
[
i
]
<=
2048
)
{
{
// see www.ros.org/wiki/kinect_node for details
double
range
=
baseline
*
depthCameraParameters
.
fx
double
range
=
1.0
f
/
(
-
0.00307
f
*
static_cast
<
float
>
(
data
[
i
])
+
3.33
f
);
/
(
1.0
/
8.0
*
(
disparityOffset
-
static_cast
<
double
>
(
data
[
i
])));
if
(
range
>
0.0
f
)
if
(
range
>
0.0
f
)
{
{
...
@@ -341,6 +342,9 @@ Freenect::readConfigFile(void)
...
@@ -341,6 +342,9 @@ Freenect::readConfigFile(void)
settings
.
value
(
"transform/Tz"
).
toDouble
(),
settings
.
value
(
"transform/Tz"
).
toDouble
(),
0.0
,
0.0
,
0.0
,
1.0
);
0.0
,
0.0
,
0.0
,
1.0
);
transformMatrix
=
transformMatrix
.
transposed
();
transformMatrix
=
transformMatrix
.
transposed
();
baseline
=
settings
.
value
(
"transform/baseline"
).
toDouble
();
disparityOffset
=
settings
.
value
(
"transform/disparity_offset"
).
toDouble
();
}
}
void
void
...
...
src/input/Freenect.h
View file @
ac8a86ef
...
@@ -119,6 +119,8 @@ private:
...
@@ -119,6 +119,8 @@ private:
IntrinsicCameraParameters
depthCameraParameters
;
IntrinsicCameraParameters
depthCameraParameters
;
QMatrix4x4
transformMatrix
;
QMatrix4x4
transformMatrix
;
double
baseline
;
double
disparityOffset
;
// tilt angle of Kinect camera
// tilt angle of Kinect camera
int
tiltAngle
;
int
tiltAngle
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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