Skip to content
Snippets Groups Projects
Commit ce1b8f56 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

bug fixed

parent 881e31f4
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr) ...@@ -27,7 +27,7 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
incoming_capture_ptr_ = std::static_pointer_cast<CaptureGnssSingleDiff>(_capture_ptr); incoming_capture_ptr_ = std::static_pointer_cast<CaptureGnssSingleDiff>(_capture_ptr);
// discard capture with null or non-key origin frame // discard capture with null or non-key origin frame
if (incoming_capture_ptr_->getOriginFrame() == nullptr || incoming_capture_ptr_->getOriginFrame()->isKey()) if (incoming_capture_ptr_->getOriginFrame() == nullptr || !incoming_capture_ptr_->getOriginFrame()->isKey())
return; return;
FrameBasePtr new_frame_ptr = nullptr; FrameBasePtr new_frame_ptr = nullptr;
...@@ -54,14 +54,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr) ...@@ -54,14 +54,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
_capture_ptr->link(new_frame_ptr); // Add incoming Capture to the new Frame _capture_ptr->link(new_frame_ptr); // Add incoming Capture to the new Frame
// EMPLACE FEATURE // EMPLACE FEATURE
//WOLF_DEBUG("emplacing feature...");
auto ftr_ptr = FeatureBase::emplace<FeatureGnssSingleDiff>(incoming_capture_ptr_, incoming_capture_ptr_->getData(),incoming_capture_ptr_->getDataCovariance()); auto ftr_ptr = FeatureBase::emplace<FeatureGnssSingleDiff>(incoming_capture_ptr_, incoming_capture_ptr_->getData(),incoming_capture_ptr_->getDataCovariance());
// ADD CONSTRAINT // ADD CONSTRAINT
//WOLF_DEBUG("emplacing factor...");
emplaceFactor(ftr_ptr); emplaceFactor(ftr_ptr);
//WOLF_DEBUG("Factor established");
} }
// INITIALIZE ENU_MAP IF 4 NECESSARY CONDITIONS: // INITIALIZE ENU_MAP IF 4 NECESSARY CONDITIONS:
...@@ -75,10 +71,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr) ...@@ -75,10 +71,10 @@ void ProcessorGnssSingleDiff::processCapture(CaptureBasePtr _capture_ptr)
incoming_capture_ptr_->getFrame() != nullptr && incoming_capture_ptr_->getFrame()->isKey() && incoming_capture_ptr_->getFrame() != nullptr && incoming_capture_ptr_->getFrame()->isKey() &&
incoming_capture_ptr_->getData().norm() > params_gnss_->enu_map_init_dist_min) incoming_capture_ptr_->getData().norm() > params_gnss_->enu_map_init_dist_min)
{ {
std::cout << "initializing enu map\n"; WOLF_DEBUG("initializing enu map");
sensor_gnss_ptr_->initializeEnuMapYaw(last_capture_ptr_->getOriginFrame()->getState(), sensor_gnss_ptr_->initializeEnuMapYaw(incoming_capture_ptr_->getOriginFrame()->getState(),
last_capture_ptr_->getFrame()->getState(), incoming_capture_ptr_->getFrame()->getState(),
last_capture_ptr_->getData()); incoming_capture_ptr_->getData());
} }
last_capture_ptr_ = incoming_capture_ptr_; last_capture_ptr_ = incoming_capture_ptr_;
......
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