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
a8c9d3c7
Commit
a8c9d3c7
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
optionally init enu-map
parent
d14cf727
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_gnss_fix.h
+15
-10
15 additions, 10 deletions
include/gnss/processor/processor_gnss_fix.h
src/processor/processor_gnss_fix.cpp
+6
-4
6 additions, 4 deletions
src/processor/processor_gnss_fix.cpp
with
21 additions
and
14 deletions
include/gnss/processor/processor_gnss_fix.h
+
15
−
10
View file @
a8c9d3c7
...
@@ -18,7 +18,7 @@ WOLF_STRUCT_PTR_TYPEDEFS(ParamsProcessorGnssFix);
...
@@ -18,7 +18,7 @@ WOLF_STRUCT_PTR_TYPEDEFS(ParamsProcessorGnssFix);
struct
ParamsProcessorGnssFix
:
public
ParamsProcessorBase
struct
ParamsProcessorGnssFix
:
public
ParamsProcessorBase
{
{
bool
fix_from_raw
;
bool
fix_from_raw
,
init_enu_map
;
GnssUtils
::
Options
compute_pos_opt
;
GnssUtils
::
Options
compute_pos_opt
;
double
max_time_span
;
double
max_time_span
;
double
dist_traveled
;
double
dist_traveled
;
...
@@ -28,10 +28,12 @@ struct ParamsProcessorGnssFix : public ParamsProcessorBase
...
@@ -28,10 +28,12 @@ struct ParamsProcessorGnssFix : public ParamsProcessorBase
ParamsProcessorGnssFix
(
std
::
string
_unique_name
,
const
ParamsServer
&
_server
)
:
ParamsProcessorGnssFix
(
std
::
string
_unique_name
,
const
ParamsServer
&
_server
)
:
ParamsProcessorBase
(
_unique_name
,
_server
)
ParamsProcessorBase
(
_unique_name
,
_server
)
{
{
max_time_span
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/keyframe_vote/max_time_span"
);
max_time_span
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/keyframe_vote/max_time_span"
);
dist_traveled
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/keyframe_vote/dist_traveled"
);
dist_traveled
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/keyframe_vote/dist_traveled"
);
enu_map_init_dist_min
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/enu_map_init_dist_min"
);
init_enu_map
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/init_enu_map"
);
fix_from_raw
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/fix_from_raw"
);
if
(
init_enu_map
)
enu_map_init_dist_min
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/enu_map_init_dist_min"
);
fix_from_raw
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/fix_from_raw"
);
// COMPUTE POS PARAMS (only if compute fix from yaw)
// COMPUTE POS PARAMS (only if compute fix from yaw)
if
(
fix_from_raw
)
if
(
fix_from_raw
)
...
@@ -59,11 +61,14 @@ struct ParamsProcessorGnssFix : public ParamsProcessorBase
...
@@ -59,11 +61,14 @@ struct ParamsProcessorGnssFix : public ParamsProcessorBase
std
::
string
print
()
const
std
::
string
print
()
const
{
{
return
"
\n
"
+
ParamsProcessorBase
::
print
()
+
"
\n
"
+
return
"
\n
"
+
ParamsProcessorBase
::
print
()
+
"
\n
"
+
"max_time_span: "
+
std
::
to_string
(
max_time_span
)
+
"
\n
"
+
"max_time_span: "
+
std
::
to_string
(
max_time_span
)
+
"
\n
"
+
"dist_traveled: "
+
std
::
to_string
(
dist_traveled
)
+
"
\n
"
+
"dist_traveled: "
+
std
::
to_string
(
dist_traveled
)
+
"
\n
"
+
"fix_from_raw: "
+
std
::
to_string
(
fix_from_raw
)
+
"
\n
"
+
"fix_from_raw: "
+
std
::
to_string
(
fix_from_raw
)
+
"
\n
"
+
"enu_map_init_dist_min: "
+
std
::
to_string
(
enu_map_init_dist_min
)
+
"
\n
"
+
"init_enu_map: "
+
std
::
to_string
(
init_enu_map
)
+
"
\n
"
+
"keyframe_vote/max_time_span: "
+
std
::
to_string
(
max_time_span
)
+
"
\n
"
+
(
init_enu_map
?
"enu_map_init_dist_min: "
+
std
::
to_string
(
enu_map_init_dist_min
)
+
"
\n
"
:
""
)
+
"enu_map_init_dist_min: "
+
std
::
to_string
(
enu_map_init_dist_min
)
+
"
\n
"
+
"keyframe_vote/max_time_span: "
+
std
::
to_string
(
max_time_span
)
+
"
\n
"
+
(
fix_from_raw
?
(
fix_from_raw
?
"gnss/sateph: "
+
std
::
to_string
(
compute_pos_opt
.
sateph
)
+
"
\n
"
+
"gnss/sateph: "
+
std
::
to_string
(
compute_pos_opt
.
sateph
)
+
"
\n
"
+
"gnss/ionoopt: "
+
std
::
to_string
(
compute_pos_opt
.
ionoopt
)
+
"
\n
"
+
"gnss/ionoopt: "
+
std
::
to_string
(
compute_pos_opt
.
ionoopt
)
+
"
\n
"
+
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_gnss_fix.cpp
+
6
−
4
View file @
a8c9d3c7
...
@@ -132,7 +132,7 @@ void ProcessorGnssFix::processCapture(CaptureBasePtr _capture)
...
@@ -132,7 +132,7 @@ void ProcessorGnssFix::processCapture(CaptureBasePtr _capture)
first_feature_
=
incoming_feature
;
first_feature_
=
incoming_feature
;
}
}
// Initialize ENU-MAP if: ENU defined and ENU-MAP not initialized
// Initialize ENU-MAP if: ENU defined and ENU-MAP not initialized
if
(
!
first_capture_
->
isRemoving
())
if
(
params_gnss_
->
init_enu_map
and
!
first_capture_
->
isRemoving
())
{
{
assert
(
first_capture_
->
getFrame
()
!=
nullptr
&&
incoming_capture_
->
getFrame
()
!=
nullptr
);
assert
(
first_capture_
->
getFrame
()
!=
nullptr
&&
incoming_capture_
->
getFrame
()
!=
nullptr
);
if
(
sensor_gnss_
->
isEnuDefined
()
&&
!
sensor_gnss_
->
isEnuMapInitialized
()
)
if
(
sensor_gnss_
->
isEnuDefined
()
&&
!
sensor_gnss_
->
isEnuMapInitialized
()
)
...
@@ -219,9 +219,11 @@ bool ProcessorGnssFix::voteForKeyFrame() const
...
@@ -219,9 +219,11 @@ bool ProcessorGnssFix::voteForKeyFrame() const
}
}
// ENU-MAP not initialized and can be initialized
// ENU-MAP not initialized and can be initialized
if
(
sensor_gnss_
->
isEnuDefined
()
&&
if
(
params_gnss_
->
init_enu_map
and
!
sensor_gnss_
->
isEnuMapInitialized
()
&&
sensor_gnss_
->
isEnuDefined
()
and
(
first_feature_
->
getMeasurement
()
-
incoming_pos_out_
.
pos
).
norm
()
>
params_gnss_
->
enu_map_init_dist_min
)
!
sensor_gnss_
->
isEnuMapInitialized
()
and
!
first_capture_
->
isRemoving
()
and
(
first_feature_
->
getMeasurement
()
-
incoming_pos_out_
.
pos
).
norm
()
>
params_gnss_
->
enu_map_init_dist_min
)
{
{
WOLF_DEBUG
(
"KF because of enu map not initialized"
);
WOLF_DEBUG
(
"KF because of enu map not initialized"
);
assert
(
first_capture_
!=
nullptr
);
assert
(
first_capture_
!=
nullptr
);
...
...
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