Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
gnss
Commits
d0e023e6
Commit
d0e023e6
authored
4 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
185527bd
No related branches found
Branches containing commit
No related tags found
2 merge requests
!28
release after RAL
,
!27
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_tracker_gnss.cpp
+14
-3
14 additions, 3 deletions
src/processor/processor_tracker_gnss.cpp
with
14 additions
and
3 deletions
src/processor/processor_tracker_gnss.cpp
+
14
−
3
View file @
d0e023e6
...
@@ -110,15 +110,19 @@ void ProcessorTrackerGnss::preProcess()
...
@@ -110,15 +110,19 @@ void ProcessorTrackerGnss::preProcess()
untracked_incoming_features_
[
feat
->
satNumber
()]
=
feat
;
untracked_incoming_features_
[
feat
->
satNumber
()]
=
feat
;
}
}
std
::
string
discarded_str
;
#ifdef _WOLF_DEBUG
std
::
string
discarded_str
,
detected_str
;
for
(
auto
sat
:
fix_incoming_
.
discarded_sats
)
for
(
auto
sat
:
fix_incoming_
.
discarded_sats
)
discarded_str
+=
std
::
to_string
(
sat
)
+
" "
;
discarded_str
+=
std
::
to_string
(
sat
)
+
" "
;
for
(
auto
ftr_pair
:
untracked_incoming_features_
)
detected_str
+=
std
::
to_string
(
ftr_pair
.
first
)
+
" "
;
#endif
WOLF_DEBUG
(
"ProcessorTrackerGnss::preProcess()"
,
WOLF_DEBUG
(
"ProcessorTrackerGnss::preProcess()"
,
"
\n\t
initial observations: "
,
n_initial
,
"
\n\t
initial observations: "
,
n_initial
,
"
\n\t
RTKLIB discarded: "
,
fix_incoming_
.
discarded_sats
.
size
(),
" ("
,
discarded_str
,
")"
,
"
\n\t
RTKLIB discarded: "
,
fix_incoming_
.
discarded_sats
.
size
(),
" ("
,
discarded_str
,
")"
,
"
\n\t
gnssutils discarded: "
,
n_initial
-
untracked_incoming_features_
.
size
()
-
fix_incoming_
.
discarded_sats
.
size
(),
"
\n\t
gnssutils discarded: "
,
n_initial
-
untracked_incoming_features_
.
size
()
-
fix_incoming_
.
discarded_sats
.
size
(),
"
\n\t
detected incoming features: "
,
untracked_incoming_features_
.
size
());
"
\n\t
detected incoming features: "
,
untracked_incoming_features_
.
size
()
,
" ("
,
detected_str
,
")"
);
}
}
unsigned
int
ProcessorTrackerGnss
::
trackFeatures
(
const
FeatureBasePtrList
&
_features_in
,
unsigned
int
ProcessorTrackerGnss
::
trackFeatures
(
const
FeatureBasePtrList
&
_features_in
,
...
@@ -140,6 +144,8 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
...
@@ -140,6 +144,8 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
int
sat_num
=
std
::
static_pointer_cast
<
FeatureGnssSatellite
>
(
feat_in
)
->
satNumber
();
int
sat_num
=
std
::
static_pointer_cast
<
FeatureGnssSatellite
>
(
feat_in
)
->
satNumber
();
WOLF_DEBUG
(
"tracking "
,
feat_in
->
trackId
()
,
", sat number "
,
sat_num
);
if
(
untracked_incoming_features_
.
count
(
sat_num
)
!=
0
and
if
(
untracked_incoming_features_
.
count
(
sat_num
)
!=
0
and
std
::
abs
(
untracked_incoming_features_
.
at
(
sat_num
)
->
getObservation
().
L
[
0
])
>
1e-12
)
// Track only carrier phase valid
std
::
abs
(
untracked_incoming_features_
.
at
(
sat_num
)
->
getObservation
().
L
[
0
])
>
1e-12
)
// Track only carrier phase valid
{
{
...
@@ -148,7 +154,12 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
...
@@ -148,7 +154,12 @@ unsigned int ProcessorTrackerGnss::trackFeatures(const FeatureBasePtrList& _feat
_features_out
.
push_back
(
ftr
);
_features_out
.
push_back
(
ftr
);
_feature_correspondences
[
ftr
]
=
std
::
make_shared
<
FeatureMatch
>
(
FeatureMatch
({
feat_in
,
0
}));
_feature_correspondences
[
ftr
]
=
std
::
make_shared
<
FeatureMatch
>
(
FeatureMatch
({
feat_in
,
0
}));
WOLF_DEBUG
(
"track: "
,
feat_in
->
trackId
()
,
" last: "
,
feat_in
->
id
()
,
" inc: "
,
ftr
->
id
()
,
" !"
);
WOLF_DEBUG
(
"
\t
tracked: "
,
feat_in
->
trackId
()
,
" last: "
,
feat_in
->
id
()
,
" inc: "
,
ftr
->
id
()
,
" !"
);
}
else
{
WOLF_DEBUG_COND
(
untracked_incoming_features_
.
count
(
sat_num
)
==
0
,
"
\t
not tracked, missing satellite"
);
WOLF_DEBUG_COND
(
untracked_incoming_features_
.
count
(
sat_num
)
==
1
,
"
\t
not tracked, wrong carrier phase value"
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment