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
ce1b8f56
Commit
ce1b8f56
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
bug fixed
parent
881e31f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_gnss_single_diff.cpp
+5
-9
5 additions, 9 deletions
src/processor/processor_gnss_single_diff.cpp
with
5 additions
and
9 deletions
src/processor/processor_gnss_single_diff.cpp
+
5
−
9
View file @
ce1b8f56
...
@@ -27,7 +27,7 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
...
@@ -27,7 +27,7 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
incoming_capture_ptr_
=
std
::
static_pointer_cast
<
CaptureGnssSingleDiff
>
(
_capture_ptr
);
incoming_capture_ptr_
=
std
::
static_pointer_cast
<
CaptureGnssSingleDiff
>
(
_capture_ptr
);
// discard capture with null or non-key origin frame
// discard capture with null or non-key origin frame
if
(
incoming_capture_ptr_
->
getOriginFrame
()
==
nullptr
||
incoming_capture_ptr_
->
getOriginFrame
()
->
isKey
())
if
(
incoming_capture_ptr_
->
getOriginFrame
()
==
nullptr
||
!
incoming_capture_ptr_
->
getOriginFrame
()
->
isKey
())
return
;
return
;
FrameBasePtr
new_frame_ptr
=
nullptr
;
FrameBasePtr
new_frame_ptr
=
nullptr
;
...
@@ -54,14 +54,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
...
@@ -54,14 +54,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
_capture_ptr
->
link
(
new_frame_ptr
);
// Add incoming Capture to the new Frame
_capture_ptr
->
link
(
new_frame_ptr
);
// Add incoming Capture to the new Frame
// EMPLACE FEATURE
// EMPLACE FEATURE
//WOLF_DEBUG("emplacing feature...");
auto
ftr_ptr
=
FeatureBase
::
emplace
<
FeatureGnssSingleDiff
>
(
incoming_capture_ptr_
,
incoming_capture_ptr_
->
getData
(),
incoming_capture_ptr_
->
getDataCovariance
());
auto
ftr_ptr
=
FeatureBase
::
emplace
<
FeatureGnssSingleDiff
>
(
incoming_capture_ptr_
,
incoming_capture_ptr_
->
getData
(),
incoming_capture_ptr_
->
getDataCovariance
());
// ADD CONSTRAINT
// ADD CONSTRAINT
//WOLF_DEBUG("emplacing factor...");
emplaceFactor
(
ftr_ptr
);
emplaceFactor
(
ftr_ptr
);
//WOLF_DEBUG("Factor established");
}
}
// INITIALIZE ENU_MAP IF 4 NECESSARY CONDITIONS:
// INITIALIZE ENU_MAP IF 4 NECESSARY CONDITIONS:
...
@@ -75,10 +71,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
...
@@ -75,10 +71,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
incoming_capture_ptr_
->
getFrame
()
!=
nullptr
&&
incoming_capture_ptr_
->
getFrame
()
->
isKey
()
&&
incoming_capture_ptr_
->
getFrame
()
!=
nullptr
&&
incoming_capture_ptr_
->
getFrame
()
->
isKey
()
&&
incoming_capture_ptr_
->
getData
().
norm
()
>
params_gnss_
->
enu_map_init_dist_min
)
incoming_capture_ptr_
->
getData
().
norm
()
>
params_gnss_
->
enu_map_init_dist_min
)
{
{
std
::
cout
<<
"initializing enu map
\n
"
;
WOLF_DEBUG
(
"initializing enu map"
)
;
sensor_gnss_ptr_
->
initializeEnuMapYaw
(
last
_capture_ptr_
->
getOriginFrame
()
->
getState
(),
sensor_gnss_ptr_
->
initializeEnuMapYaw
(
incoming
_capture_ptr_
->
getOriginFrame
()
->
getState
(),
last
_capture_ptr_
->
getFrame
()
->
getState
(),
incoming
_capture_ptr_
->
getFrame
()
->
getState
(),
last
_capture_ptr_
->
getData
());
incoming
_capture_ptr_
->
getData
());
}
}
last_capture_ptr_
=
incoming_capture_ptr_
;
last_capture_ptr_
=
incoming_capture_ptr_
;
...
...
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