MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / reset

Method reset

src/PLPSLAM/tracking_module.cc:395–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394
395 void tracking_module::reset()
396 {
397 spdlog::info("resetting system");
398
399 initializer_.reset();
400 keyfrm_inserter_.reset();
401
402 mapper_->request_reset();
403 global_optimizer_->request_reset();
404
405 bow_db_->clear();
406 map_db_->clear();
407
408 data::frame::next_id_ = 0;
409 data::keyframe::next_id_ = 0;
410 data::landmark::next_id_ = 0;
411
412 // FW:
413 if (map_db_->_b_use_line_tracking)
414 {
415 data::Line::_next_id = 0;
416 }
417
418 last_reloc_frm_id_ = 0;
419
420 tracking_state_ = tracker_state_t::NotInitialized;
421 }
422
423 // FW: main function
424 void tracking_module::track()

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
request_resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected