Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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_ros
wolf_ros_vision
Commits
56b517d4
Commit
56b517d4
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Abort some procedures if set of keypoints is empty
parent
f9202b9c
No related branches found
No related tags found
2 merge requests
!3
After cmake and const refactor
,
!1
Resolve "Publisher for visual odometry"
Pipeline
#9830
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/publisher_vision.cpp
+6
-2
6 additions, 2 deletions
src/publisher_vision.cpp
with
6 additions
and
2 deletions
src/publisher_vision.cpp
+
6
−
2
View file @
56b517d4
...
...
@@ -516,11 +516,12 @@ void PublisherVisionDebug::showTracks(cv::Mat _image,
int
min_feature_in_track
=
min_max_feat
.
first
;
int
max_feature_in_track
=
min_max_feat
.
second
;
// std::cout << "\n\n\n Number of tracks: " << _tracks.size() << '\n';
// for (auto track = _tracks.begin(); track != _tracks.end(); ++track) //la map trackS
map
<
size_t
,
FeatureBasePtr
>
alive_features
=
_track_matrix
.
snapshot
(
_cap_img
);
if
(
alive_features
.
empty
())
return
;
TimeStamp
time_capture
=
_cap_img
->
getTimeStamp
();
for
(
auto
alive_feat
:
alive_features
)
...
...
@@ -529,7 +530,7 @@ void PublisherVisionDebug::showTracks(cv::Mat _image,
Track
track
=
_track_matrix
.
track
(
alive_feat
.
second
->
trackId
());
if
(
track
.
size
()
==
0
)
{
std
::
cout
<<
"SIZE 0 TRACK!!"
<<
'\n'
;
WOLF_WARN
(
"SIZE 0 TRACK!!"
)
;
continue
;
}
...
...
@@ -714,6 +715,9 @@ void PublisherVisionDebug::showLandmarks(cv::Mat _image,
// draw one ladmark for each feature
const
auto
&
ftrs_alive
=
_track_matrix
.
snapshotAsList
(
_capture
);
if
(
ftrs_alive
.
empty
())
return
;
for
(
const
auto
&
ftr
:
ftrs_alive
)
{
// get stuff of this landmark
...
...
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