Skip to content
Snippets Groups Projects
Commit 19e7dec9 authored by mnaveau's avatar mnaveau
Browse files

add prtection on the srdf reading

parent 1e8f845f
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,13 @@ namespace PatternGeneratorJRL
// Read xml stream
using boost::property_tree::ptree;
ptree pt;
read_xml(srdf_stream, pt);
try{
read_xml(srdf_stream, pt);
}catch(...)
{
cerr << "problem while reading the srdf file. File corrupted?" << endl;
return ;
}
// Get the starting configuration : half sitting
MAL_VECTOR_RESIZE(m_HalfSitting,aPR.numberDof()-6);
......
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