| 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() |
nothing calls this directly
no test coverage detected