Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vision
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
vision
Commits
c9f0b066
Commit
c9f0b066
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
little change in the the order of init of local variable
parent
445186fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!36
After cmake and const refactor
,
!28
Resolve "Building a new visual odometry system"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_visual_odometry.cpp
+2
-1
2 additions, 1 deletion
src/processor/processor_visual_odometry.cpp
with
2 additions
and
1 deletion
src/processor/processor_visual_odometry.cpp
+
2
−
1
View file @
c9f0b066
...
...
@@ -221,6 +221,7 @@ unsigned int ProcessorVisualOdometry::processKnown()
// Get tracks present at the last capture time (should be the most recent snapshot at this moment)
std
::
list
<
FeatureBasePtr
>
tracks_snapshot_last
=
track_matrix_
.
snapshotAsList
(
last_ptr_
);
TracksMap
tracks_map_li
=
capture_image_incoming_
->
getTracksPrev
();
for
(
auto
feature_tracked_last
:
tracks_snapshot_last
){
// check if the keypoint in the last capture is in the last->incoming TracksMap stored in the incoming capture
FeaturePointImagePtr
feat_pi_last
=
std
::
dynamic_pointer_cast
<
FeaturePointImage
>
(
feature_tracked_last
);
...
...
@@ -230,7 +231,7 @@ unsigned int ProcessorVisualOdometry::processKnown()
// otherwise we store the pair as a newly detected track (for processNew)
TracksMap
tracks_map_li
=
capture_image_incoming_
->
getTracksPrev
();
if
(
tracks_map_li
.
count
(
id_feat_last
)){
//
std::cout <<
"A corresponding track has been found for id_feat_last "
<<
id_feat_last
<< std::endl
;
//
WOLF_TRACE(
"A corresponding track has been found for id_feat_last "
,
id_feat_last
)
;
auto
kp_track_li
=
tracks_map_li
.
find
(
id_feat_last
);
// create a feature using the corresponding WKeyPoint contained in incoming (hence the "second")
auto
feat_inco
=
FeatureBase
::
emplace
<
FeaturePointImage
>
(
...
...
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