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

catching csm exception in icp

parent fa6e6320
No related branches found
No related tags found
No related merge requests found
Pipeline #8022 passed
......@@ -147,7 +147,16 @@ icpOutput ICP::align(const LaserScan &_current_ls,
csm_input.use_ml_weights = _icp_params.use_ml_weights ? 1 : 0;
csm_input.use_sigma_weights = _icp_params.use_sigma_weights ? 1 : 0;
sm_icp(&csm_input, &csm_output);
try
{
sm_icp(&csm_input, &csm_output);
}
catch(...)
{
icpOutput result{};
result.valid = false;
return result;
}
icpOutput result{};
result.nvalid = csm_output.nvalid;
......
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