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
ffdeedde
Commit
ffdeedde
authored
4 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
d0e023e6
No related branches found
No related tags found
2 merge requests
!28
release after RAL
,
!27
After 2nd RAL submission
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/gnss/processor/processor_tracker_gnss.h
+2
-2
2 additions, 2 deletions
include/gnss/processor/processor_tracker_gnss.h
src/processor/processor_tracker_gnss.cpp
+22
-13
22 additions, 13 deletions
src/processor/processor_tracker_gnss.cpp
with
24 additions
and
15 deletions
include/gnss/processor/processor_tracker_gnss.h
+
2
−
2
View file @
ffdeedde
...
...
@@ -80,9 +80,9 @@ struct ParamsProcessorTrackerGnss : public ParamsProcessorTrackerFeature
}
// COMPUTE FIX OPTIONS (RAIM)
fix_opt
.
elmin
=
0
;
fix_opt
.
maxgdop
=
30
;
fix_opt
.
raim
=
gnss_opt
.
raim
;
fix_opt
.
sateph
=
6
;
//EPHOPT_SBAS2;
fix_opt
.
ionoopt
=
9
;
//IONOPT_SBAS2;
// same constellations
fix_opt
.
GPS
=
gnss_opt
.
GPS
;
fix_opt
.
SBS
=
gnss_opt
.
SBS
;
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_tracker_gnss.cpp
+
22
−
13
View file @
ffdeedde
...
...
@@ -30,6 +30,9 @@ void ProcessorTrackerGnss::preProcess()
#ifdef _WOLF_DEBUG
int
n_initial
=
inc_snapshot
->
getObservations
()
->
size
();
std
::
string
initial_str
;
for
(
auto
obs
:
inc_snapshot
->
getObservations
()
->
getObservations
())
initial_str
+=
std
::
to_string
(
obs
.
sat
)
+
" "
;
#endif
// compute satellites positions
...
...
@@ -84,16 +87,16 @@ void ProcessorTrackerGnss::preProcess()
WOLF_DEBUG
(
"TS: "
,
incoming_ptr_
->
getTimeStamp
(),
" - Fix solution (ECEF): "
,
fix_incoming_
.
pos
.
transpose
(),
" - Fix solution (GEO): "
,
fix_incoming_
.
lat_lon
.
transpose
());
//WOLF_DEBUG("preprocess: RTKLIB excluded observations: ", fix_incoming_.discarded_sats.size());
// filter observations (available ephemeris, constellations and elevation&SNR)
#ifdef _WOLF_DEBUG
auto
discarded_gnssutils
=
#endif
inc_snapshot
->
filterObservations
(
fix_incoming_
.
discarded_sats
,
// discarded sats
fix_incoming_
.
sat_azel
,
false
,
// check code
false
,
// check carrier phase
params_tracker_gnss_
->
gnss_opt
);
//WOLF_DEBUG("preprocess: filtered observations: ", inc_snapshot->getObservations()->size());
// compute corrected Ranges
inc_snapshot
->
computeRanges
(
fix_incoming_
.
sat_azel
,
fix_incoming_
.
lat_lon
,
...
...
@@ -111,17 +114,23 @@ void ProcessorTrackerGnss::preProcess()
}
#ifdef _WOLF_DEBUG
std
::
string
discarded_str
,
detected_str
;
std
::
string
used_rtklib_str
,
discarded_rtklib_str
,
detected_str
,
discarded_gnssutils_str
;
for
(
auto
sat
:
fix_incoming_
.
used_sats
)
used_rtklib_str
+=
std
::
to_string
(
sat
)
+
" "
;
for
(
auto
sat
:
fix_incoming_
.
discarded_sats
)
discarded_str
+=
std
::
to_string
(
sat
)
+
" "
;
discarded_
rtklib_
str
+=
std
::
to_string
(
sat
)
+
" "
;
for
(
auto
ftr_pair
:
untracked_incoming_features_
)
detected_str
+=
std
::
to_string
(
ftr_pair
.
first
)
+
" "
;
for
(
auto
sat_disc
:
discarded_gnssutils
)
if
(
fix_incoming_
.
discarded_sats
.
count
(
sat_disc
)
==
0
)
discarded_gnssutils_str
+=
std
::
to_string
(
sat_disc
)
+
" "
;
#endif
WOLF_DEBUG
(
"ProcessorTrackerGnss::preProcess()"
,
"
\n\t
initial observations: "
,
n_initial
,
"
\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
initial observations: "
,
n_initial
,
" ("
,
initial_str
,
")"
,
"
\n\t
RTKLIB used: "
,
fix_incoming_
.
used_sats
.
size
(),
" ("
,
used_rtklib_str
,
")"
,
//"\n\tRTKLIB discarded: ", fix_incoming_.discarded_sats.size(), " (", discarded_rtklib_str, ")",
"
\n\t
gnssutils discarded: "
,
n_initial
-
untracked_incoming_features_
.
size
()
-
fix_incoming_
.
discarded_sats
.
size
(),
" ("
,
discarded_gnssutils_str
,
")"
,
"
\n\t
detected incoming features: "
,
untracked_incoming_features_
.
size
(),
" ("
,
detected_str
,
")"
);
}
...
...
@@ -616,8 +625,8 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
// discard if residual too high evaluated at the current estimation
if
(
std
::
abs
(
residual
)
>
params_tracker_gnss_
->
outlier_residual_th
)
{
//
WOLF_WARN("Discarding FactorGnssPseudoRange, considered OUTLIER");
//
WOLF_TRACE("Feature: ", fac->getMeasurement(),"\nError: ",fac->getMeasurementSquareRootInformationUpper().inverse()*residual);
WOLF_WARN
(
"Discarding FactorGnssPseudoRange, considered OUTLIER"
);
WOLF_TRACE
(
"Feature: "
,
fac
->
getMeasurement
(),
"
\n
Error: "
,
fac
->
getMeasurementSquareRootInformationUpper
().
inverse
()
*
residual
);
remove_fac
.
push_back
(
fac_pr
);
// store for statistics
outliers_pseudorange_
++
;
...
...
@@ -650,8 +659,8 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
// discard if residual too high evaluated at the current estimation
if
(
std
::
abs
(
residual
)
>
params_tracker_gnss_
->
outlier_residual_th
)
{
//
WOLF_WARN("Discarding FactorGnss
PseudoRange
, considered OUTLIER");
//
WOLF_TRACE("Residual: ", residual,"\nError: ",fac->getMeasurementSquareRootInformationUpper().inverse()*residual);
WOLF_WARN
(
"Discarding FactorGnss
Tdcp
, considered OUTLIER"
);
WOLF_TRACE
(
"Residual: "
,
residual
,
"
\n
Error: "
,
fac
->
getMeasurementSquareRootInformationUpper
().
inverse
()
*
residual
);
remove_fac
.
push_back
(
fac_tdcp
);
// store for statistics
outliers_tdcp_
++
;
...
...
@@ -671,7 +680,7 @@ void ProcessorTrackerGnss::removeOutliers(FactorBasePtrList fac_list, CaptureBas
//assert(false);
fac
->
remove
();
}
WOLF_
DEBUG
(
"ProcessorTrackerGnss::removeOutliers:"
,
WOLF_
INFO
(
"ProcessorTrackerGnss::removeOutliers:"
,
"
\n\t
Pseudorange: "
,
outliers_pseudorange_
,
"
\t
( "
,
(
100.0
*
outliers_pseudorange_
)
/
(
outliers_pseudorange_
+
inliers_pseudorange_
),
" %)"
);
if
(
params_tracker_gnss_
->
gnss_opt
.
tdcp
.
enabled
and
params_tracker_gnss_
->
remove_outliers_tdcp
)
std
::
cout
<<
"
\t
TDCP: "
...
...
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