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
65d1b9c1
Commit
65d1b9c1
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the main issue, especially KeyFrame creation, the logic seems to work
parent
4832a6c3
No related branches found
No related tags found
2 merge requests
!36
After cmake and const refactor
,
!28
Resolve "Building a new visual odometry system"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demos/demo_visual_odometry.cpp
+1
-1
1 addition, 1 deletion
demos/demo_visual_odometry.cpp
demos/processor_visual_odometry.yaml
+2
-2
2 additions, 2 deletions
demos/processor_visual_odometry.yaml
src/processor/processor_visual_odometry.cpp
+3
-1
3 additions, 1 deletion
src/processor/processor_visual_odometry.cpp
with
6 additions
and
4 deletions
demos/demo_visual_odometry.cpp
+
1
−
1
View file @
65d1b9c1
...
@@ -75,7 +75,7 @@ int main(int argc, char** argv)
...
@@ -75,7 +75,7 @@ int main(int argc, char** argv)
// for (size_t k=0; k < fn.size(); ++k)
// for (size_t k=0; k < fn.size(); ++k)
for
(
size_t
k
=
0
;
k
<
10
0
;
++
k
)
for
(
size_t
k
=
0
;
k
<
2
0
;
++
k
)
{
{
cv
::
Mat
img
=
cv
::
imread
(
fn
[
k
],
cv
::
IMREAD_GRAYSCALE
);
cv
::
Mat
img
=
cv
::
imread
(
fn
[
k
],
cv
::
IMREAD_GRAYSCALE
);
...
...
This diff is collapsed.
Click to expand it.
demos/processor_visual_odometry.yaml
+
2
−
2
View file @
65d1b9c1
...
@@ -21,8 +21,8 @@ fast_params:
...
@@ -21,8 +21,8 @@ fast_params:
threshold_fast
:
50
threshold_fast
:
50
non_max_suppresion
:
true
non_max_suppresion
:
true
min_nb_tracks
:
10
0
min_nb_tracks
:
10
max_nb_tracks
:
20
0
max_nb_tracks
:
20
std_pix
:
1
std_pix
:
1
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_visual_odometry.cpp
+
3
−
1
View file @
65d1b9c1
...
@@ -158,6 +158,7 @@ void ProcessorVisualOdometry::preProcess()
...
@@ -158,6 +158,7 @@ void ProcessorVisualOdometry::preProcess()
////////////////////////////////
////////////////////////////////
size_t
n_tracks_origin
=
tracks_origin_incoming
.
size
();
size_t
n_tracks_origin
=
tracks_origin_incoming
.
size
();
if
(
n_tracks_origin
<
params_visual_odometry_
->
min_nb_tracks_
){
if
(
n_tracks_origin
<
params_visual_odometry_
->
min_nb_tracks_
){
std
::
cout
<<
" Too Few Tracks"
<<
std
::
endl
;
// Detect new KeyPoints
// Detect new KeyPoints
std
::
vector
<
cv
::
KeyPoint
>
kps_last_new
;
std
::
vector
<
cv
::
KeyPoint
>
kps_last_new
;
...
@@ -388,7 +389,8 @@ bool ProcessorVisualOdometry::voteForKeyFrame() const
...
@@ -388,7 +389,8 @@ bool ProcessorVisualOdometry::voteForKeyFrame() const
bool
vote
=
capture_image_incoming
->
getLastWasRepopulated
();
bool
vote
=
capture_image_incoming
->
getLastWasRepopulated
();
// simple vote based on frame count, should be changed to something that takes into account number of tracks alive, parallax, etc.
// simple vote based on frame count, should be changed to something that takes into account number of tracks alive, parallax, etc.
vote
=
vote
||
((
frame_count_
%
5
)
==
0
);
// vote = vote || ((frame_count_ % 5) == 0);
std
::
cout
<<
"vote "
<<
vote
<<
std
::
endl
;
return
vote
;
return
vote
;
}
}
...
...
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