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

hotfix

parent 38f8bb40
No related branches found
No related tags found
No related merge requests found
Pipeline #18615 passed
......@@ -218,7 +218,7 @@ icpOutput ICP::align(const LaserScan &_current_ls,
{
std::cout << "Invalid result, trying again!" << std::endl;
}
if (_icp_params.verbose and not result.valid and result.attempts < _icp_params.icp_attempts)
if (_icp_params.verbose and result.error > _icp_params.restart_threshold_mean_error and result.attempts < _icp_params.icp_attempts)
{
std::cout << "Error too big: " << result.error
<< " ( should be < "
......
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