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

Method initialize

src/PLPSLAM/tracking_module.cc:572–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

get_stateMethod · 0.80
request_resetMethod · 0.45

Tested by

no test coverage detected