Skip to content
Snippets Groups Projects
Commit fc4afc68 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Merge remote-tracking branch 'origin/19-building-a-new-visual-odometry-system'...

Merge remote-tracking branch 'origin/19-building-a-new-visual-odometry-system' into 19-building-a-new-visual-odometry-system
parents 5c34e4b1 c9f0b066
No related branches found
No related tags found
2 merge requests!36After cmake and const refactor,!28Resolve "Building a new visual odometry system"
...@@ -227,6 +227,7 @@ unsigned int ProcessorVisualOdometry::processKnown() ...@@ -227,6 +227,7 @@ unsigned int ProcessorVisualOdometry::processKnown()
// Get tracks present at the last capture time (should be the most recent snapshot at this moment) // 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_); 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){ 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 // 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); FeaturePointImagePtr feat_pi_last = std::dynamic_pointer_cast<FeaturePointImage>(feature_tracked_last);
...@@ -236,7 +237,7 @@ unsigned int ProcessorVisualOdometry::processKnown() ...@@ -236,7 +237,7 @@ unsigned int ProcessorVisualOdometry::processKnown()
// otherwise we store the pair as a newly detected track (for processNew) // otherwise we store the pair as a newly detected track (for processNew)
TracksMap tracks_map_li = capture_image_incoming_->getTracksPrev(); TracksMap tracks_map_li = capture_image_incoming_->getTracksPrev();
if (tracks_map_li.count(id_feat_last)){ 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); auto kp_track_li = tracks_map_li.find(id_feat_last);
// create a feature using the corresponding WKeyPoint contained in incoming (hence the "second") // create a feature using the corresponding WKeyPoint contained in incoming (hence the "second")
auto feat_inco = FeatureBase::emplace<FeaturePointImage>( auto feat_inco = FeatureBase::emplace<FeaturePointImage>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment