Skip to content
Snippets Groups Projects
Commit 4d3504fb authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

replace min -> fmin

parent 7097619f
No related branches found
No related tags found
3 merge requests!30Release after RAL,!29After 2nd RAL submission,!15Resolve "Adapt to state block map"
......@@ -207,7 +207,7 @@ std::map<Scalar, CapturesAligned> ProcessorCloseLoopICP::evaluateCandidates(Fram
icp_tools_ptr_->align(capture_laser_own->getScan(), capture_laser_other->getScan(), sensor_own->getScanParams(),
sensor_other->getScanParams(), this->icp_params_, transform_guess);
Scalar points_coeff_used =
((Scalar)trf.nvalid / (Scalar)min(capture_laser_own->getScan().ranges_raw_.size(), capture_laser_other->getScan().ranges_raw_.size()));
((Scalar)trf.nvalid / (Scalar)fmin(capture_laser_own->getScan().ranges_raw_.size(), capture_laser_other->getScan().ranges_raw_.size()));
Scalar mean_error = trf.error / trf.nvalid;
WOLF_INFO("DBG ------------------------------");
WOLF_INFO("DBG valid? ", trf.valid, " m_er ", mean_error, " ", points_coeff_used*100, "% own_id: ", _keyframe_own->id(), " other_id: ", _keyframe_other->id());
......
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