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
c55e6d7c
Commit
c55e6d7c
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Doc
parent
ed58403b
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
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vision/processor/processor_visual_odometry.h
+25
-11
25 additions, 11 deletions
include/vision/processor/processor_visual_odometry.h
with
25 additions
and
11 deletions
include/vision/processor/processor_visual_odometry.h
+
25
−
11
View file @
c55e6d7c
...
...
@@ -113,7 +113,7 @@ class ProcessorVisualOdometry : public ProcessorTracker
{
public:
ProcessorVisualOdometry
(
ParamsProcessorVisualOdometryPtr
_params_visual_odometry
);
~
ProcessorVisualOdometry
()
override
{};
virtual
~
ProcessorVisualOdometry
()
override
{};
WOLF_PROCESSOR_CREATE
(
ProcessorVisualOdometry
,
ParamsProcessorVisualOdometry
);
...
...
@@ -145,13 +145,16 @@ class ProcessorVisualOdometry : public ProcessorTracker
public
:
/**
* \brief Get params from sensor to finish processor setup
*/
void
configure
(
SensorBasePtr
_sensor
)
override
;
/** Pre-process incoming Capture, see ProcessorTracker
/**
\brief
Pre-process incoming Capture, see ProcessorTracker
*/
void
preProcess
()
override
;
/** Post-process, see ProcessorTracker
/**
\brief
Post-process, see ProcessorTracker
*/
virtual
void
postProcess
()
override
;
...
...
@@ -159,7 +162,8 @@ class ProcessorVisualOdometry : public ProcessorTracker
*/
bool
voteForKeyFrame
()
const
override
;
/** \brief Tracker function
/**
* \brief Tracker function
* \return The number of successful tracks.
*
* see ProcessorTracker
...
...
@@ -167,19 +171,23 @@ class ProcessorVisualOdometry : public ProcessorTracker
unsigned
int
processKnown
()
override
;
/** \brief Process new Features or Landmarks
*
/**
* \brief Process new Features
* \param _max_features the maximum number of new feature tracks
* \return the number of new tracks
*/
unsigned
int
processNew
(
const
int
&
_max_features
)
override
;
/**
\brief Creates and adds factors from last_ to origin_
*
/**
*
\brief Creates and adds factors from last_ to origin_
*/
void
establishFactors
()
override
;
/**\brief Emplace a landmark corresponding to a track and initialize it with triangulation.
*
/**
* \brief Emplace a landmark corresponding to a track and initialize it with triangulation.
* \param _feature_ptr a pointer to the feature used to create the new landmark
* \return a pointer to the created landmark
*/
LandmarkBasePtr
emplaceLandmark
(
FeatureBasePtr
_feature_ptr
);
...
...
@@ -195,7 +203,13 @@ class ProcessorVisualOdometry : public ProcessorTracker
*/
void
resetDerived
()
override
;
/** \brief Implementation of pyramidal KLT with openCV
/**
* \brief Implementation of pyramidal KLT with openCV
* \param img_prev previous image
* \param img_curr current image
* \param mwkps_prev keypoints in previous image
* \param mwkps_curr keypoints in current image, those tracked from the previous image
* \return a map with track associations
*/
TracksMap
kltTrack
(
const
cv
::
Mat
img_prev
,
const
cv
::
Mat
img_curr
,
const
KeyPointsMap
&
mwkps_prev
,
KeyPointsMap
&
mwkps_curr
);
...
...
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