| 570 | } |
| 571 | |
| 572 | bool tracking_module::initialize() |
| 573 | { |
| 574 | // try to initialize with the current frame |
| 575 | initializer_.initialize(curr_frm_); |
| 576 | |
| 577 | // if map building was failed -> reset the map database |
| 578 | if (initializer_.get_state() == module::initializer_state_t::Wrong) |
| 579 | { |
| 580 | // reset |
| 581 | system_->request_reset(); |
| 582 | return false; |
| 583 | } |
| 584 | |
| 585 | // if initializing was failed -> try to initialize with the next frame |
| 586 | if (initializer_.get_state() != module::initializer_state_t::Succeeded) |
| 587 | { |
| 588 | return false; |
| 589 | } |
| 590 | |
| 591 | return true; |
| 592 | } |
| 593 | |
| 594 | bool tracking_module::track_current_frame() |
| 595 | { |
nothing calls this directly
no test coverage detected